| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- <UserControl
- x:Class="SHJX.Service.Librarys.setting.LiquidControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
- d:DesignHeight="700"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.7*" />
- <RowDefinition Height="2*" />
- <RowDefinition Height="1.3*" />
- </Grid.RowDefinitions>
- <GroupBox
- Grid.Row="0"
- Width="700"
- Height="100"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="串口设定">
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="端口号:" />
- <TextBox
- Width="80"
- Height="25"
- Margin="0,5"
- VerticalAlignment="Center"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Cursor="IBeam"
- Foreground="#99CCCC"
- Text="{Binding PortName}" />
- <CheckBox
- Height="30"
- Margin="15,0,0,0"
- pu:CheckBoxHelper.BoxHeight="17"
- pu:CheckBoxHelper.BoxWidth="25"
- pu:CheckBoxHelper.CheckBoxStyle="Switch"
- pu:CheckBoxHelper.CheckedBackground="#99CCCC"
- Content="启动后自动找寻端口"
- Cursor="Hand"
- Foreground="#99CCCC"
- IsChecked="{Binding AutoFindPort}" />
- </StackPanel>
- </GroupBox>
- <GroupBox
- Grid.Row="1"
- Width="700"
- Height="300"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="加液设定">
- <DataGrid
- Width="685"
- Height="260"
- pu:DataGridHelper.ColumnHorizontalContentAlignment="Center"
- pu:DataGridHelper.HeaderBackground="#5099CCCC"
- pu:DataGridHelper.HeaderForeground="White"
- pu:DataGridHelper.HeaderMinHeight="45"
- pu:DataGridHelper.HoverBackground="#5066CCCC"
- pu:DataGridHelper.SelectedBackground="#5099CCCC"
- BorderBrush="#99CCCC"
- CanUserAddRows="False"
- Foreground="#99CCCC"
- ItemsSource="{Binding LiquidWashes , Mode=TwoWay}">
- <pu:DataGridHelper.AutoGenerateCheckBoxStyle>
- <Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
- <Setter Property="pu:CheckBoxHelper.CheckBoxStyle" Value="Switch" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding Path=(pu:CheckBoxHelper.CheckBoxStyle), RelativeSource={RelativeSource Self}}" Value="Switch">
- <Setter Property="pu:CheckBoxHelper.CheckedBackground" Value="#99CCCC" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </pu:DataGridHelper.AutoGenerateCheckBoxStyle>
- </DataGrid>
- </GroupBox>
- <GroupBox
- Grid.Row="2"
- Width="700"
- Height="200"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="冷却时间">
- <DataGrid
- x:Name="CoolingCustom"
- Width="685"
- Height="154"
- pu:DataGridHelper.ColumnHorizontalContentAlignment="Center"
- pu:DataGridHelper.HeaderBackground="#5099CCCC"
- pu:DataGridHelper.HeaderForeground="White"
- pu:DataGridHelper.HeaderMinHeight="45"
- pu:DataGridHelper.HoverBackground="#5066CCCC"
- pu:DataGridHelper.SelectedBackground="#5099CCCC"
- BorderBrush="#99CCCC"
- CanUserAddRows="False"
- Foreground="#99CCCC"
- ItemsSource="{Binding CoolingData, Mode=TwoWay}">
- <pu:DataGridHelper.AutoGenerateCheckBoxStyle>
- <Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
- <Setter Property="pu:CheckBoxHelper.CheckBoxStyle" Value="Switch" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding Path=(pu:CheckBoxHelper.CheckBoxStyle), RelativeSource={RelativeSource Self}}" Value="Switch">
- <Setter Property="pu:CheckBoxHelper.CheckedBackground" Value="#99CCCC" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </pu:DataGridHelper.AutoGenerateCheckBoxStyle>
- </DataGrid>
- </GroupBox>
- </Grid>
- </UserControl>
|