| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- <Window
- x:Class="SHJX.Service.Library.Views.ModeSetting"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:My="clr-namespace:CustomUI"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
- 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"
- xmlns:vc="clr-namespace:SHJX.Service.Common.ElementHelper;assembly=SHJX.Service.Common"
- Title="ModeSetting"
- Width="200"
- Height="220"
- prism:ViewModelLocator.AutoWireViewModel="True"
- vc:DialogCloseHelper.DialogResult="{Binding DialogResult}"
- AllowsTransparency="True"
- Background="Transparent"
- ResizeMode="NoResize"
- TabIndex="120"
- WindowStyle="None"
- mc:Ignorable="d">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Loaded">
- <i:InvokeCommandAction Command="{Binding LoadingCommand}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <Window.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </Window.Resources>
- <Border
- Background="#F6FBFF"
- BorderBrush="#6452A4"
- BorderThickness="1"
- CornerRadius="10">
- <Grid
- Name="DetailBody"
- Background="Transparent"
- Tag="{Binding DetailKey, Mode=TwoWay}">
- <Grid.RowDefinitions>
- <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="180"
- Height="25"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#6452A4"
- pu:TextBoxHelper.IsClearButtonVisible="True"
- Cursor="IBeam"
- Text="{Binding SampleDetail, Mode=TwoWay}" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="2*" />
- <ColumnDefinition Width="3*" />
- </Grid.ColumnDefinitions>
- <Grid
- Grid.Row="0"
- Grid.Column="0"
- HorizontalAlignment="Center">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="取样体积:" />
- </Grid>
- <Grid Grid.Row="0" Grid.Column="1">
- <TextBox
- x:Name="txt_Volume"
- Width="110"
- Height="25"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#6452A4"
- Cursor="IBeam"
- Text="{Binding SampleVolume, Mode=TwoWay}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="TextChanged">
- <i:InvokeCommandAction Command="{Binding SampleVolumeTextChangedCommand}" CommandParameter="{Binding ElementName=txt_Volume, Path=Text}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </TextBox>
- </Grid>
- </Grid>
- <Grid Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="2*" />
- <ColumnDefinition Width="3*" />
- </Grid.ColumnDefinitions>
- <Grid
- Grid.Row="0"
- Grid.Column="0"
- HorizontalAlignment="Center">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="取样倍数:" />
- </Grid>
- <Grid Grid.Row="0" Grid.Column="1">
- <TextBox
- Width="110"
- Height="25"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#6452A4"
- Cursor="IBeam"
- IsEnabled="False"
- IsReadOnly="True"
- Text="{Binding SampleMultiple, Mode=TwoWay}" />
- </Grid>
- </Grid>
- <Grid Grid.Row="3">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="2*" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0" Grid.ColumnSpan="2">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="2*" />
- <ColumnDefinition Width="1*" />
- </Grid.ColumnDefinitions>
- <My:SegmentControl
- x:Name="cb_Mode"
- Grid.Column="0"
- Width="95"
- Height="25"
- Margin="0,0,5,0"
- HorizontalAlignment="Right"
- BorderBrush="#6452A4"
- Cursor="Hand"
- SelectedIndex="{Binding SegmentIndex}"
- SelectedItem="{Binding SampleType}">
- <My:SegmentItem Content="样品" FontSize="8" />
- <My:SegmentItem Content="空白" FontSize="8" />
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding ModeSelectionChangedCommand}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </My:SegmentControl>
- <CheckBox
- Grid.Column="1"
- Width="45"
- Height="25"
- HorizontalAlignment="Left"
- pu:CheckBoxHelper.CheckBoxStyle="Button"
- pu:CheckBoxHelper.CheckedBackground="#6452A4"
- pu:CheckBoxHelper.CornerRadius="7"
- BorderBrush="#6452A4"
- BorderThickness="1"
- Content="标定"
- Cursor="Hand"
- FontSize="8"
- IsChecked="{Binding CalibrationChecked}"
- IsEnabled="{Binding CalibrationEnable}" />
- </Grid>
- </Grid>
- </Grid>
- <Grid Grid.Row="4">
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <RadioButton
- Height="30"
- Margin="0,0,5,0"
- pu:RadioButtonHelper.BoxHeight="16"
- pu:RadioButtonHelper.BoxWidth="16"
- pu:RadioButtonHelper.CheckedBackground="#6452A4"
- Background="#326452A4"
- Content="酸性"
- Cursor="Hand"
- IsChecked="{Binding AcidChecked}" />
- <RadioButton
- Height="30"
- Margin="5,0,0,0"
- pu:RadioButtonHelper.BoxHeight="16"
- pu:RadioButtonHelper.BoxWidth="16"
- pu:RadioButtonHelper.CheckedBackground="#6452A4"
- Background="#326452A4"
- Content="碱性"
- Cursor="Hand"
- IsChecked="{Binding AlkaliChecked}" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="5">
- <CheckBox
- x:Name="cb_send"
- Height="25"
- HorizontalAlignment="Center"
- pu:CheckBoxHelper.BoxHeight="16"
- pu:CheckBoxHelper.BoxWidth="24"
- pu:CheckBoxHelper.CheckBoxStyle="Switch"
- pu:CheckBoxHelper.CheckedBackground="#6452A4"
- Content="任务是否下发"
- Cursor="Hand"
- FontSize="12"
- IsChecked="{Binding IsSend}" />
- </Grid>
- <Grid Grid.Row="6">
- <UniformGrid Columns="2" Rows="1">
- <Button
- Width="60"
- Height="25"
- pu:ButtonHelper.ButtonStyle="Hollow"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#556452A4"
- Background="#6452A4"
- BorderBrush="#6452A4"
- Command="{Binding ClickSureCommand}"
- Content="确定"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF" />
- <Button
- Width="60"
- Height="25"
- pu:ButtonHelper.ButtonStyle="Hollow"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#556452A4"
- Background="#6452A4"
- BorderBrush="#6452A4"
- Command="{Binding CancelCommand}"
- Content="取消"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF" />
- </UniformGrid>
- </Grid>
- </Grid>
- </Border>
- </Window>
|