终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SimOrderConfitView.xaml 7.8 KiB

2 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <Window x:Class="BPASmartClient.MorkM.View.SimOrderConfitView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:BPASmartClient.MorkM.View"
  7. mc:Ignorable="d"
  8. Title="SimOrderConfitView" Height="450" Width="800"
  9. WindowStyle="None"
  10. WindowStartupLocation="CenterScreen">
  11. <Window.Resources>
  12. <ResourceDictionary>
  13. <ResourceDictionary.MergedDictionaries>
  14. <ResourceDictionary>
  15. <Style x:Key="buttonStyle" TargetType="Button">
  16. <Setter Property="FontFamily" Value="楷体" />
  17. <Setter Property="Width" Value="100" />
  18. <Setter Property="FontSize" Value="18" />
  19. <Setter Property="Foreground" Value="Aqua" />
  20. <Setter Property="Template">
  21. <Setter.Value>
  22. <ControlTemplate TargetType="Button">
  23. <Grid x:Name="gr">
  24. <ContentControl
  25. HorizontalAlignment="Center"
  26. VerticalAlignment="Center"
  27. Content="{TemplateBinding Content}"
  28. Foreground="{TemplateBinding Foreground}" />
  29. <Polygon
  30. x:Name="poly"
  31. Points="0 0,80 0,100 30,20 30"
  32. Stroke="#FF34F7F7"
  33. StrokeThickness="2" />
  34. </Grid>
  35. <ControlTemplate.Triggers>
  36. <Trigger Property="IsMouseOver" Value="True">
  37. <Setter TargetName="poly" Property="Fill" Value="#2234F7F7" />
  38. </Trigger>
  39. </ControlTemplate.Triggers>
  40. </ControlTemplate>
  41. </Setter.Value>
  42. </Setter>
  43. </Style>
  44. </ResourceDictionary>
  45. </ResourceDictionary.MergedDictionaries>
  46. </ResourceDictionary>
  47. </Window.Resources>
  48. <Grid Background="#103153">
  49. <Grid.ColumnDefinitions>
  50. <ColumnDefinition Width="79*"/>
  51. <ColumnDefinition Width="321*"/>
  52. </Grid.ColumnDefinitions>
  53. <Grid.RowDefinitions>
  54. <RowDefinition Height="35" />
  55. <RowDefinition />
  56. </Grid.RowDefinitions>
  57. <!--#region 标题栏设置-->
  58. <Border
  59. x:Name="MoveBorder"
  60. Height="35"
  61. VerticalAlignment="Center"
  62. Background="#0C2349"
  63. BorderBrush="#55ffffff"
  64. BorderThickness="0,0,0,1" Grid.ColumnSpan="2">
  65. <StackPanel Orientation="Horizontal">
  66. <Image Margin="15,5,0,5" Source="/BPASmartClient.CustomResource;component/Image/hbl.ico" />
  67. <TextBlock
  68. Name="tbTitle"
  69. Margin="10,0"
  70. HorizontalAlignment="Left"
  71. VerticalAlignment="Center"
  72. FontSize="18"
  73. Foreground="White"
  74. Text="模拟设备参数配置" />
  75. </StackPanel>
  76. </Border>
  77. <UniformGrid
  78. Width="150"
  79. Height="30"
  80. HorizontalAlignment="Left"
  81. Columns="3" Grid.Column="1" Margin="492,2,0,3">
  82. <Button
  83. Name="ButMin"
  84. Content="&#xe664;"
  85. Style="{StaticResource TitleBarStyle}"
  86. Visibility="Hidden" />
  87. <Button
  88. Name="ButMax"
  89. Content="&#xe65d;"
  90. Style="{StaticResource TitleBarStyle}"
  91. Visibility="Hidden" />
  92. <Button
  93. Name="ButClose"
  94. Content="&#xe639;"
  95. FontSize="30"
  96. Style="{StaticResource TitleBarStyle}" />
  97. </UniformGrid>
  98. <!--#endregion-->
  99. <!--#region 内容显示区-->
  100. <Grid KeyDown="Grid_KeyDown" Grid.Row="1" Margin="10,10,10,10" Grid.ColumnSpan="2">
  101. <Grid.RowDefinitions>
  102. <RowDefinition />
  103. <RowDefinition />
  104. <RowDefinition />
  105. <RowDefinition />
  106. </Grid.RowDefinitions>
  107. <Grid.ColumnDefinitions>
  108. <ColumnDefinition Width="260"/>
  109. <ColumnDefinition />
  110. </Grid.ColumnDefinitions>
  111. <TextBlock
  112. HorizontalAlignment="Right"
  113. VerticalAlignment="Center"
  114. FontFamily="楷体"
  115. FontSize="18"
  116. Foreground="#FF34F7F7"
  117. Text="请输入模拟数据名称:" />
  118. <TextBox
  119. Grid.Column="1"
  120. Margin="0,10"
  121. Width="400"
  122. VerticalAlignment="Center"
  123. Background="Transparent"
  124. BorderBrush="#FF23CACA"
  125. CaretBrush="Aqua"
  126. FontFamily="楷体"
  127. FontSize="21"
  128. Foreground="#ff34f7f7"
  129. TabIndex="0"
  130. Text="{Binding Name}" />
  131. <TextBlock
  132. Grid.Row="1"
  133. HorizontalAlignment="Right"
  134. VerticalAlignment="Center"
  135. FontFamily="楷体"
  136. FontSize="20"
  137. Foreground="#FF34F7F7"
  138. Text="模拟位置最小值:" />
  139. <TextBox
  140. Grid.Row="1"
  141. Grid.Column="1"
  142. Margin="0,10"
  143. Width="400"
  144. VerticalAlignment="Center"
  145. Background="Transparent"
  146. BorderBrush="#FF23CACA"
  147. CaretBrush="Aqua"
  148. FontFamily="楷体"
  149. FontSize="21"
  150. Foreground="#ff34f7f7"
  151. TabIndex="1"
  152. Text="{Binding Min}" />
  153. <TextBlock
  154. Grid.Row="2"
  155. HorizontalAlignment="Right"
  156. VerticalAlignment="Center"
  157. FontFamily="楷体"
  158. FontSize="20"
  159. Foreground="#FF34F7F7"
  160. Text="模拟位置最大值:" />
  161. <TextBox
  162. Grid.Row="2"
  163. Grid.Column="1"
  164. Margin="0,10"
  165. Width="400"
  166. VerticalAlignment="Center"
  167. Background="Transparent"
  168. BorderBrush="#FF23CACA"
  169. CaretBrush="Aqua"
  170. FontFamily="楷体"
  171. FontSize="21"
  172. Foreground="#ff34f7f7"
  173. TabIndex="2"
  174. Text="{Binding Max}" />
  175. <Button
  176. Grid.Row="3"
  177. Margin="20,10"
  178. Command="{Binding CancelCommand}"
  179. VerticalAlignment="Center"
  180. HorizontalAlignment="Right"
  181. Content="取消"
  182. Style="{StaticResource buttonStyle}" />
  183. <Button
  184. Grid.Row="3"
  185. Grid.Column="1"
  186. Margin="20,10,120,10"
  187. VerticalAlignment="Center"
  188. HorizontalAlignment="Right"
  189. Command="{Binding ConfirmCommand}"
  190. Content="确认"
  191. Style="{StaticResource buttonStyle}" />
  192. </Grid>
  193. <!--#endregion-->
  194. </Grid>
  195. </Window>