| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603 |
- <UserControl
- x:Class="SHJX.Service.Shell.Views.Manual.TemperatureManualWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:UI="clr-namespace:CustomUI;assembly=SHJX.Service.Library"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
- d:DesignHeight="800"
- d:DesignWidth="900"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d">
- <UserControl.Resources>
- <!--#region CheckBoxStyle-->
- <Style x:Key="CheckBoxDefault" TargetType="{x:Type CheckBox}">
- <Setter Property="Background" Value="White" />
- <Setter Property="BorderBrush" Value="#FF262E34" />
- <Setter Property="Foreground" Value="#FF262E34" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type CheckBox}">
- <StackPanel HorizontalAlignment="Stretch" Orientation="Horizontal">
- <Border
- Width="15"
- Height="15"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <!-- your color here -->
- <Path
- Name="eliCheck"
- Width="15"
- Height="10"
- Data="M 2,4 C 2,4 3,5 5,13 C 5,13 5,3 12,0"
- Stroke="#6452A4"
- StrokeThickness="3"
- Visibility="Collapsed" />
- </Border>
- <TextBlock
- Margin="5,0,0,0"
- VerticalAlignment="Center"
- Foreground="{TemplateBinding Foreground}"
- Text="{TemplateBinding Content}" />
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="Background" Value="#FF9C9E9F" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property="Background" Value="LightGray" />
- <Setter Property="Foreground" Value="Gray" />
- <Setter Property="BorderBrush" Value="Gray" />
- <Setter TargetName="eliCheck" Property="Opacity" Value="0.5" />
- </Trigger>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="eliCheck" Property="Visibility" Value="Visible" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
- <DataTemplate x:Key="itemTemplate">
- <pu:MultiComboBoxItem Content="{Binding Content}" IsSelected="{Binding IsChecked}" />
- </DataTemplate>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1.3*" />
- <RowDefinition Height="1.3*" />
- <RowDefinition Height="1.4*" />
- </Grid.RowDefinitions>
- <GroupBox
- Grid.Row="0"
- Width="800"
- Height="260"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
- Header="加热设置(消解位)">
- <StackPanel Grid.Row="0" Orientation="Horizontal">
- <UI:Dashboard
- x:Name="dashboard"
- Width="200"
- Height="200"
- Margin="50,0"
- LongTickCount="5"
- Maximum="300"
- ShortTickCount="2"
- Skin="Speed"
- Value="{Binding DissolveCurrentTemperatureValue}" />
- <Grid
- Width="460"
- Height="200"
- HorizontalAlignment="Center">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="2*" />
- <ColumnDefinition Width="1*" />
- </Grid.ColumnDefinitions>
- <!--#region Border-->
- <Border
- Grid.Row="0"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- Background="Transparent"
- BorderBrush="#6452A4"
- BorderThickness="1"
- CornerRadius="10,10,0,0" />
- <Border
- Grid.Row="1"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- Background="Transparent"
- BorderBrush="#6452A4"
- BorderThickness="1" />
- <Border
- Grid.Row="2"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- Background="Transparent"
- BorderBrush="#6452A4"
- BorderThickness="1" />
- <Border
- Grid.Row="3"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- Background="Transparent"
- BorderBrush="#6452A4"
- BorderThickness="1" />
- <Border
- Grid.Row="4"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- Background="Transparent"
- BorderBrush="#6452A4"
- BorderThickness="1"
- CornerRadius="0,0,10,10" />
- <Border
- Grid.Row="0"
- Grid.RowSpan="5"
- Grid.Column="3"
- Background="Transparent"
- BorderBrush="#6452A4"
- BorderThickness="1"
- CornerRadius="0,10,10,0" />
- <!--#endregion-->
- <!--#region Columns 1-->
- <TextBlock
- Grid.Row="0"
- Grid.Column="0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontWeight="Black"
- Text="比例:" />
- <TextBlock
- Grid.Row="1"
- Grid.Column="0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontWeight="Black"
- Text="积分:" />
- <TextBlock
- Grid.Row="2"
- Grid.Column="0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontWeight="Black"
- Text="微分:" />
- <TextBlock
- Grid.Row="3"
- Grid.Column="0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontWeight="Black"
- Text="积分默认值:" />
- <TextBlock
- Grid.Row="4"
- Grid.Column="0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontWeight="Black"
- Text="温度:" />
- <!--#endregion-->
- <!--#region Columns 2-->
- <TextBox
- Grid.Row="0"
- Grid.Column="1"
- Width="120"
- Height="25"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- pu:TextBoxHelper.CornerRadius="8"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#929FDE"
- pu:TextBoxHelper.Watermark="0"
- Cursor="IBeam"
- Text="{Binding DissolvePid.Ratio}" />
- <TextBox
- Grid.Row="1"
- Grid.Column="1"
- Width="120"
- Height="25"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- pu:TextBoxHelper.CornerRadius="8"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#929FDE"
- pu:TextBoxHelper.Watermark="0"
- Text="{Binding DissolvePid.Integral}" />
- <TextBox
- Grid.Row="2"
- Grid.Column="1"
- Width="120"
- Height="25"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- pu:TextBoxHelper.CornerRadius="8"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#929FDE"
- pu:TextBoxHelper.Watermark="0"
- Text="{Binding DissolvePid.Differential}" />
- <TextBox
- Grid.Row="3"
- Grid.Column="1"
- Width="120"
- Height="25"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- pu:TextBoxHelper.CornerRadius="8"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#929FDE"
- pu:TextBoxHelper.Watermark="0"
- Text="{Binding DissolvePid.IntegralDeafult}" />
- <TextBox
- Name="txt_temp"
- Grid.Row="4"
- Grid.Column="1"
- Width="120"
- Height="25"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- pu:TextBoxHelper.CornerRadius="8"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#929FDE"
- pu:TextBoxHelper.Watermark="0"
- Text="{Binding ManualSettingDissolveTemperatureValue}" />
- <!--#endregion-->
- <!--#region Columns 3-->
- <Button
- Grid.Row="0"
- Grid.Column="2"
- Width="80"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding ManualSettingRatioCommand}"
- Content="设置"
- Cursor="Hand" />
- <Button
- Grid.Row="1"
- Grid.Column="2"
- Width="80"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding ManualSettingIntegralCommand}"
- Content="设置"
- Cursor="Hand" />
- <Button
- Grid.Row="2"
- Grid.Column="2"
- Width="80"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding ManualSettingDifferentialCommand}"
- Content="设置"
- Cursor="Hand" />
- <Button
- Grid.Row="3"
- Grid.Column="2"
- Width="80"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding ManualSettingIntegralDeafultCommand}"
- Content="设置"
- Cursor="Hand" />
- <Button
- Grid.Row="4"
- Grid.Column="2"
- Width="80"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding ManualSettingTemperatureCommand}"
- CommandParameter="{Binding ElementName=txt_temp, Path=Text}"
- Content="设置"
- Cursor="Hand" />
- <!--#endregion-->
- </Grid>
- </StackPanel>
- </GroupBox>
- <GroupBox
- Grid.Row="1"
- Width="800"
- Height="260"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray"
- Header="加热设置(滴定位)">
- <StackPanel Grid.Row="0" Orientation="Horizontal">
- <UI:Dashboard
- Width="200"
- Height="200"
- Margin="50,0"
- LongTickCount="5"
- Maximum="300"
- ShortTickCount="2"
- Skin="Speed"
- Value="{Binding TitrationCurrentTemperatureValue}" />
- <Grid
- Width="460"
- Height="200"
- HorizontalAlignment="Center">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="2*" />
- <ColumnDefinition Width="1*" />
- </Grid.ColumnDefinitions>
- <!--#region Border-->
- <Border
- Grid.Row="0"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- Background="Transparent"
- BorderBrush="#6452A4"
- BorderThickness="1"
- CornerRadius="10,10,0,0" />
- <Border
- Grid.Row="1"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- Background="Transparent"
- BorderBrush="#6452A4"
- BorderThickness="1" />
- <Border
- Grid.Row="2"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- Background="Transparent"
- BorderBrush="#6452A4"
- BorderThickness="1" />
- <Border
- Grid.Row="3"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- Background="Transparent"
- BorderBrush="#6452A4"
- BorderThickness="1" />
- <Border
- Grid.Row="4"
- Grid.Column="0"
- Grid.ColumnSpan="3"
- Background="Transparent"
- BorderBrush="#6452A4"
- BorderThickness="1"
- CornerRadius="0,0,10,10" />
- <Border
- Grid.Row="0"
- Grid.RowSpan="5"
- Grid.Column="3"
- Background="Transparent"
- BorderBrush="#6452A4"
- BorderThickness="1"
- CornerRadius="0,10,10,0" />
- <!--#endregion-->
- <!--#region Columns 1-->
- <TextBlock
- Grid.Row="0"
- Grid.Column="0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontWeight="Black"
- Text="比例:" />
- <TextBlock
- Grid.Row="1"
- Grid.Column="0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontWeight="Black"
- Text="积分:" />
- <TextBlock
- Grid.Row="2"
- Grid.Column="0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontWeight="Black"
- Text="微分:" />
- <TextBlock
- Grid.Row="3"
- Grid.Column="0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontWeight="Black"
- Text="积分默认值:" />
- <TextBlock
- Grid.Row="4"
- Grid.Column="0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontWeight="Black"
- Text="温度:" />
- <!--#endregion-->
- <!--#region Columns 2-->
- <TextBox
- Grid.Row="0"
- Grid.Column="1"
- Width="120"
- Height="25"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- pu:TextBoxHelper.CornerRadius="8"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#929FDE"
- pu:TextBoxHelper.Watermark="0"
- Cursor="IBeam"
- Text="{Binding TitrationPid.Ratio}" />
- <TextBox
- Grid.Row="1"
- Grid.Column="1"
- Width="120"
- Height="25"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- pu:TextBoxHelper.CornerRadius="8"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#929FDE"
- pu:TextBoxHelper.Watermark="0"
- Text="{Binding TitrationPid.Integral}" />
- <TextBox
- Grid.Row="2"
- Grid.Column="1"
- Width="120"
- Height="25"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- pu:TextBoxHelper.CornerRadius="8"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#929FDE"
- pu:TextBoxHelper.Watermark="0"
- Text="{Binding TitrationPid.Differential}" />
- <TextBox
- Grid.Row="3"
- Grid.Column="1"
- Width="120"
- Height="25"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- pu:TextBoxHelper.CornerRadius="8"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#929FDE"
- pu:TextBoxHelper.Watermark="0"
- Cursor="IBeam"
- Text="{Binding TitrationPid.IntegralDeafult}" />
- <TextBox
- Grid.Row="4"
- Grid.Column="1"
- Width="120"
- Height="25"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- pu:TextBoxHelper.CornerRadius="8"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#929FDE"
- pu:TextBoxHelper.Watermark="0"
- Cursor="IBeam"
- Text="{Binding ManualSettingTitrationTemperatureValue}" />
- <!--#endregion-->
- <!--#region Columns 3-->
- <Button
- Grid.Row="0"
- Grid.Column="2"
- Width="80"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding ManualSettingRatioCommand}"
- Content="设置"
- Cursor="Hand" />
- <Button
- Grid.Row="1"
- Grid.Column="2"
- Width="80"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding ManualSettingIntegralCommand}"
- Content="设置"
- Cursor="Hand" />
- <Button
- Grid.Row="2"
- Grid.Column="2"
- Width="80"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding ManualSettingDifferentialCommand}"
- Content="设置"
- Cursor="Hand" />
- <Button
- Grid.Row="3"
- Grid.Column="2"
- Width="80"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding ManualSettingIntegralDeafultCommand}"
- Content="设置"
- Cursor="Hand" />
- <Button
- Grid.Row="4"
- Grid.Column="2"
- Width="80"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- Command="{Binding ManualSettingTemperatureCommand}"
- CommandParameter="{Binding ElementName=txt_temp, Path=Text}"
- Content="设置"
- Cursor="Hand" />
- <!--#endregion-->
- </Grid>
- </StackPanel>
- </GroupBox>
- </Grid>
- </UserControl>
|