| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <UserControl
- x:Class="SHJX.Service.Librarys.setting.TitrationControl"
- 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="600"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <GroupBox
- Grid.Row="0"
- Width="700"
- Height="250"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="滴定">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="0" Grid.Column="0">
- <TextBlock
- Margin="0,0,80,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="平衡阈值(低浓度):" />
- </Grid>
- <Grid Grid.Row="1" Grid.Column="0">
- <TextBlock
- Margin="0,0,80,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="平衡阈值(高浓度):" />
- </Grid>
- <Grid Grid.Row="2" Grid.Column="0">
- <TextBlock
- Margin="0,0,80,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="平衡后等待时长(s):" />
- </Grid>
- <Grid Grid.Row="3" Grid.Column="0">
- <TextBlock
- Margin="0,0,80,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="滴定前等待时长(s):" />
- </Grid>
- <Grid Grid.Row="4" Grid.Column="0">
- <TextBlock
- Margin="0,0,80,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="最大滴定体积(ml):" />
- </Grid>
- <Grid Grid.Row="5" Grid.Column="0">
- <TextBlock
- Margin="0,0,80,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Text="快速滴定值(ml):" />
- </Grid>
- <Grid Grid.Row="0" Grid.Column="1">
- <TextBox
- Width="160"
- Height="30"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="{Binding Titration.LowValue}" />
- </Grid>
- <Grid Grid.Row="1" Grid.Column="1">
- <TextBox
- Width="160"
- Height="30"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="{Binding Titration.HighValue}" />
- </Grid>
- <Grid Grid.Row="2" Grid.Column="1">
- <TextBox
- Width="160"
- Height="30"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="{Binding Titration.AfterWaitTime}" />
- </Grid>
- <Grid Grid.Row="3" Grid.Column="1">
- <TextBox
- Width="160"
- Height="30"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="{Binding Titration.BeforeWaitTime}" />
- </Grid>
- <Grid Grid.Row="4" Grid.Column="1">
- <TextBox
- Width="160"
- Height="30"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="{Binding Titration.MaxVolume}" />
- </Grid>
- <Grid Grid.Row="5" Grid.Column="1">
- <TextBox
- Width="160"
- Height="30"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="{Binding Titration.QuickTitrationValue}" />
- </Grid>
- </Grid>
- </GroupBox>
- <GroupBox
- Grid.Row="1"
- Width="700"
- Height="250"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="滴液体积">
- <DataGrid
- Width="685"
- Height="205"
- 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 LiquidAmount, 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>
|