| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- <Window
- x:Class="SHJX.Service.Librarys.MainLibrarys.ModeSetting"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:custom="clr-namespace:CustomUI;assembly=SHJX.Service.CustomControl"
- 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"
- Title="ModeSetting"
- Width="230"
- Height="315"
- AllowsTransparency="True"
- Background="Transparent"
- ResizeMode="NoResize"
- Style="{x:Null}"
- WindowStyle="None"
- mc:Ignorable="d">
- <Window.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </Window.Resources>
- <Border
- Width="230"
- Height="315"
- Background="#FFF"
- BorderBrush="#99CCCC"
- BorderThickness="2"
- CornerRadius="15">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="1*" />
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <StackPanel
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBox
- x:Name="txt_ModeDetail"
- Width="200"
- Height="25"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- pu:TextBoxHelper.IsClearButtonVisible="True"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="2*" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="0" Grid.Column="0">
- <TextBlock
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Foreground="#99CCCC"
- Text="取样:" />
- </Grid>
- <Grid Grid.Row="0" Grid.Column="1">
- <TextBox
- x:Name="TxtSampleNum"
- Width="125"
- Height="25"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="{Binding SampleVolume, RelativeSource={RelativeSource AncestorType=Window}}"
- TextChanged="TxtSampleNum_TextChanged" />
- </Grid>
- </Grid>
- <Grid Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="2*" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="0" Grid.Column="0">
- <TextBlock
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Foreground="#99CCCC"
- Text="倍数:" />
- </Grid>
- <Grid Grid.Row="0" Grid.Column="1">
- <TextBox
- Name="TxtMultiple"
- Width="125"
- Height="25"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="1.0" />
- </Grid>
- </Grid>
- <Grid Grid.Row="3">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="2*" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="0" Grid.Column="0">
- <TextBlock
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Foreground="#99CCCC"
- Text="硫酸汞:" />
- </Grid>
- <Grid Grid.Row="0" Grid.Column="1">
- <TextBox
- x:Name="txt_HgSO"
- Width="125"
- Height="25"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="2" />
- </Grid>
- </Grid>
- <Grid Grid.Row="4">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="1*" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <TextBlock
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Foreground="#99CCCC"
- Text="样品浓度:" />
- </Grid>
- <Grid
- Grid.Column="1"
- Grid.ColumnSpan="2"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <custom:SegmentControl
- x:Name="cb_Concentration"
- Width="121"
- Height="25"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- BorderBrush="#99CCCC"
- CornerRadius="10"
- Cursor="Hand"
- FontWeight="Black"
- Foreground="#99CCCC"
- IsAllRound="True"
- SelectedIndex="0">
- <custom:SegmentItem
- Width="60"
- Content="低"
- CornerRadius="10"
- FontSize="10" />
- <custom:SegmentItem
- Width="60"
- Content="高"
- CornerRadius="10"
- FontSize="10" />
- </custom:SegmentControl>
- </Grid>
- </Grid>
- <Grid
- Grid.Row="5"
- Grid.Column="0"
- Grid.ColumnSpan="2">
- <custom:SegmentControl
- x:Name="cb_Mode"
- Width="195"
- Height="25"
- HorizontalAlignment="Center"
- BorderBrush="#99CCCC"
- CornerRadius="5"
- Cursor="Hand"
- FontWeight="Black"
- Foreground="#99CCCC"
- SelectedIndex="0"
- SelectionChanged="cb_Mode_SelectionChanged">
- <custom:SegmentItem
- Width="65"
- Content="水样"
- FontSize="8" />
- <custom:SegmentItem
- Width="65"
- Content="空白"
- FontSize="8" />
- <custom:SegmentItem
- Width="65"
- Content="标定"
- FontSize="8" />
-
- </custom:SegmentControl>
- </Grid>
- <Grid Grid.Row="6">
- <CheckBox
- Name="cb_quick"
- Height="25"
- HorizontalAlignment="Center"
- pu:CheckBoxHelper.BoxHeight="16"
- pu:CheckBoxHelper.BoxWidth="24"
- pu:CheckBoxHelper.CheckBoxStyle="Switch"
- pu:CheckBoxHelper.CheckedBackground="#99CCCC"
- Content="启动快速滴定"
- Cursor="Hand"
- FontSize="12"
- Foreground="#99CCCC"
- IsChecked="False" />
- </Grid>
- <Grid Grid.Row="7">
- <CheckBox
- x:Name="cb_send"
- Height="25"
- HorizontalAlignment="Center"
- pu:CheckBoxHelper.BoxHeight="16"
- pu:CheckBoxHelper.BoxWidth="24"
- pu:CheckBoxHelper.CheckBoxStyle="Switch"
- pu:CheckBoxHelper.CheckedBackground="#99CCCC"
- Content="任务是否下发"
- Cursor="Hand"
- FontSize="12"
- Foreground="#99CCCC"
- IsChecked="True" />
- </Grid>
- <Grid Grid.Row="8">
- <UniformGrid Columns="2" Rows="1">
- <Button
- x:Name="btn_Sure"
- Width="60"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Click="btn_Sure_Click"
- Content="确定"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="White" />
- <Button
- x:Name="Cancel"
- Width="60"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Click="Cancel_Click"
- Content="取消"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="White" />
- </UniformGrid>
- </Grid>
- </Grid>
- </Border>
- </Window>
|