LiquidControl.xaml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <UserControl
  2. x:Class="SHJX.Service.Librarys.setting.LiquidControl"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  8. d:DesignHeight="700"
  9. d:DesignWidth="800"
  10. mc:Ignorable="d">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="0.7*" />
  14. <RowDefinition Height="2*" />
  15. <RowDefinition Height="1.3*" />
  16. </Grid.RowDefinitions>
  17. <GroupBox
  18. Grid.Row="0"
  19. Width="700"
  20. Height="100"
  21. Margin="0,5,0,5"
  22. HorizontalAlignment="Center"
  23. VerticalAlignment="Center"
  24. pu:GroupBoxHelper.CornerRadius="8"
  25. pu:GroupBoxHelper.IsSplitLineVisible="True"
  26. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  27. BorderBrush="#99CCCC"
  28. Foreground="#99CCCC"
  29. Header="串口设定">
  30. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  31. <TextBlock VerticalAlignment="Center" Text="端口号:" />
  32. <TextBox
  33. Width="80"
  34. Height="25"
  35. Margin="0,5"
  36. VerticalAlignment="Center"
  37. pu:TextBoxHelper.CornerRadius="10"
  38. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  39. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  40. BorderBrush="#99CCCC"
  41. Cursor="IBeam"
  42. Foreground="#99CCCC"
  43. Text="{Binding PortName}" />
  44. <CheckBox
  45. Height="30"
  46. Margin="15,0,0,0"
  47. pu:CheckBoxHelper.BoxHeight="17"
  48. pu:CheckBoxHelper.BoxWidth="25"
  49. pu:CheckBoxHelper.CheckBoxStyle="Switch"
  50. pu:CheckBoxHelper.CheckedBackground="#99CCCC"
  51. Content="启动后自动找寻端口"
  52. Cursor="Hand"
  53. Foreground="#99CCCC"
  54. IsChecked="{Binding AutoFindPort}" />
  55. </StackPanel>
  56. </GroupBox>
  57. <GroupBox
  58. Grid.Row="1"
  59. Width="700"
  60. Height="300"
  61. Margin="0,5,0,5"
  62. HorizontalAlignment="Center"
  63. VerticalAlignment="Center"
  64. pu:GroupBoxHelper.CornerRadius="8"
  65. pu:GroupBoxHelper.IsSplitLineVisible="True"
  66. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  67. BorderBrush="#99CCCC"
  68. Foreground="#99CCCC"
  69. Header="加液设定">
  70. <DataGrid
  71. Width="685"
  72. Height="260"
  73. pu:DataGridHelper.ColumnHorizontalContentAlignment="Center"
  74. pu:DataGridHelper.HeaderBackground="#5099CCCC"
  75. pu:DataGridHelper.HeaderForeground="White"
  76. pu:DataGridHelper.HeaderMinHeight="45"
  77. pu:DataGridHelper.HoverBackground="#5066CCCC"
  78. pu:DataGridHelper.SelectedBackground="#5099CCCC"
  79. BorderBrush="#99CCCC"
  80. CanUserAddRows="False"
  81. Foreground="#99CCCC"
  82. ItemsSource="{Binding LiquidWashes , Mode=TwoWay}">
  83. <pu:DataGridHelper.AutoGenerateCheckBoxStyle>
  84. <Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
  85. <Setter Property="pu:CheckBoxHelper.CheckBoxStyle" Value="Switch" />
  86. <Style.Triggers>
  87. <DataTrigger Binding="{Binding Path=(pu:CheckBoxHelper.CheckBoxStyle), RelativeSource={RelativeSource Self}}" Value="Switch">
  88. <Setter Property="pu:CheckBoxHelper.CheckedBackground" Value="#99CCCC" />
  89. </DataTrigger>
  90. </Style.Triggers>
  91. </Style>
  92. </pu:DataGridHelper.AutoGenerateCheckBoxStyle>
  93. </DataGrid>
  94. </GroupBox>
  95. <GroupBox
  96. Grid.Row="2"
  97. Width="700"
  98. Height="200"
  99. Margin="0,5,0,5"
  100. HorizontalAlignment="Center"
  101. VerticalAlignment="Center"
  102. pu:GroupBoxHelper.CornerRadius="8"
  103. pu:GroupBoxHelper.IsSplitLineVisible="True"
  104. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  105. BorderBrush="#99CCCC"
  106. Foreground="#99CCCC"
  107. Header="冷却时间">
  108. <DataGrid
  109. x:Name="CoolingCustom"
  110. Width="685"
  111. Height="154"
  112. pu:DataGridHelper.ColumnHorizontalContentAlignment="Center"
  113. pu:DataGridHelper.HeaderBackground="#5099CCCC"
  114. pu:DataGridHelper.HeaderForeground="White"
  115. pu:DataGridHelper.HeaderMinHeight="45"
  116. pu:DataGridHelper.HoverBackground="#5066CCCC"
  117. pu:DataGridHelper.SelectedBackground="#5099CCCC"
  118. BorderBrush="#99CCCC"
  119. CanUserAddRows="False"
  120. Foreground="#99CCCC"
  121. ItemsSource="{Binding CoolingData, Mode=TwoWay}">
  122. <pu:DataGridHelper.AutoGenerateCheckBoxStyle>
  123. <Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
  124. <Setter Property="pu:CheckBoxHelper.CheckBoxStyle" Value="Switch" />
  125. <Style.Triggers>
  126. <DataTrigger Binding="{Binding Path=(pu:CheckBoxHelper.CheckBoxStyle), RelativeSource={RelativeSource Self}}" Value="Switch">
  127. <Setter Property="pu:CheckBoxHelper.CheckedBackground" Value="#99CCCC" />
  128. </DataTrigger>
  129. </Style.Triggers>
  130. </Style>
  131. </pu:DataGridHelper.AutoGenerateCheckBoxStyle>
  132. </DataGrid>
  133. </GroupBox>
  134. </Grid>
  135. </UserControl>