HeatingSettingWindow.xaml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <UserControl
  2. x:Class="SHJX.Service.Shell.Views.Setting.HeatingSettingWindow"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:SettingLibrary="clr-namespace:SHJX.Service.Library.Views.SettingLibrary;assembly=SHJX.Service.Library"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  8. xmlns:local="clr-namespace:SHJX.Service.Shell.Views.Setting"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:prism="http://prismlibrary.com/"
  11. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  12. d:DesignHeight="740"
  13. d:DesignWidth="800"
  14. prism:ViewModelLocator.AutoWireViewModel="True"
  15. mc:Ignorable="d">
  16. <Grid>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="1.8*" />
  19. <RowDefinition Height="3*" />
  20. <RowDefinition Height="3*" />
  21. <RowDefinition Height="1*" />
  22. </Grid.RowDefinitions>
  23. <Grid Grid.Row="0">
  24. <GroupBox
  25. Grid.Row="1"
  26. Width="700"
  27. Height="100"
  28. Margin="0,5,0,5"
  29. HorizontalAlignment="Center"
  30. VerticalAlignment="Center"
  31. pu:GroupBoxHelper.CornerRadius="8"
  32. pu:GroupBoxHelper.IsSplitLineVisible="True"
  33. pu:GroupBoxHelper.ShadowColor="LightGray"
  34. Header="加热设置">
  35. <StackPanel Orientation="Horizontal">
  36. <Label
  37. HorizontalAlignment="Center"
  38. VerticalAlignment="Center"
  39. Content="消解加热温度:" />
  40. <TextBox
  41. Width="120"
  42. Height="30"
  43. pu:TextBoxHelper.CornerRadius="10"
  44. pu:TextBoxHelper.FocusedBorderBrush="#B5B5B5"
  45. pu:TextBoxHelper.FocusedShadowColor="#B5B5B5"
  46. Cursor="IBeam"
  47. Text="{Binding DissolveTemperatureValue}">
  48. <i:Interaction.Triggers>
  49. <i:EventTrigger EventName="TextChanged">
  50. <i:InvokeCommandAction Command="{Binding TemperatureValueChangedCommand}" />
  51. </i:EventTrigger>
  52. </i:Interaction.Triggers>
  53. </TextBox>
  54. <Label
  55. HorizontalAlignment="Center"
  56. VerticalAlignment="Center"
  57. Content="滴定加热温度:" />
  58. <TextBox
  59. Width="120"
  60. Height="30"
  61. pu:TextBoxHelper.CornerRadius="10"
  62. pu:TextBoxHelper.FocusedBorderBrush="#B5B5B5"
  63. pu:TextBoxHelper.FocusedShadowColor="#B5B5B5"
  64. Cursor="IBeam"
  65. Text="{Binding TitrationTemperatureValue}">
  66. <i:Interaction.Triggers>
  67. <i:EventTrigger EventName="TextChanged">
  68. <i:InvokeCommandAction Command="{Binding TemperatureValueChangedCommand}" />
  69. </i:EventTrigger>
  70. </i:Interaction.Triggers>
  71. </TextBox>
  72. <Label
  73. HorizontalAlignment="Center"
  74. VerticalAlignment="Center"
  75. Content="程序重启后生效此更改"
  76. FontSize="12"
  77. FontWeight="Bold"
  78. Foreground="Red"
  79. Opacity="0.7"
  80. Visibility="{Binding TemperatureValueChangedTextVisibility}" />
  81. </StackPanel>
  82. </GroupBox>
  83. </Grid>
  84. <Grid Grid.Row="1">
  85. <SettingLibrary:GroupDataGridControl
  86. DataGridHeight="180"
  87. DataGridWidth="680"
  88. GroupBoxHeight="220"
  89. GroupBoxWidth="700"
  90. HeaderValue="PID"
  91. ItemSourceValue="{Binding Pids}" />
  92. </Grid>
  93. <Grid Grid.Row="2">
  94. <SettingLibrary:GroupDataGridControl
  95. DataGridHeight="180"
  96. DataGridWidth="680"
  97. GroupBoxHeight="220"
  98. GroupBoxWidth="700"
  99. HeaderValue="操作时间"
  100. ItemSourceValue="{Binding ExecuteTimes}" Margin="0,0,0,2" />
  101. </Grid>
  102. </Grid>
  103. </UserControl>