| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- <Window
- x:Class="SHJX.Service.Library.Views.CustomDialog.InputDialog"
- 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:local="clr-namespace:SHJX.Service.Library.Views.CustomDialog"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
- Title="InputDialog"
- Width="190"
- Height="220"
- VerticalAlignment="Center"
- AllowsTransparency="True"
- BorderThickness="2"
- Loaded="Window_Loaded"
- ResizeMode="NoResize"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- mc:Ignorable="d">
- <Window.Effect>
- <DropShadowEffect
- BlurRadius="14"
- Direction="300"
- ShadowDepth="3"
- Color="#6452A4" />
- </Window.Effect>
- <Window.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*" />
- <RowDefinition Height="2*" />
- <RowDefinition Height="2*" />
- <RowDefinition Height="2*" />
- <RowDefinition Height="2*" />
- <RowDefinition Height="2*" />
- <RowDefinition Height="2*" />
- </Grid.RowDefinitions>
- <StackPanel
- Grid.Row="0"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- Margin="0,0,0,0"
- VerticalAlignment="Center"
- Background="#6452A4"
- MouseMove="StackPanel_MouseMove"
- Orientation="Horizontal">
- <Image
- Grid.RowSpan="3"
- Grid.Column="0"
- Width="18"
- Height="18"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Source="/SHJX.Service.Resource;component/Photo/输入.png" />
- <TextBlock
- VerticalAlignment="Center"
- FontSize="10"
- FontWeight="Black"
- Foreground="White"
- Text="输入"
- TextAlignment="Center" />
- </StackPanel>
- <StackPanel
- Grid.Row="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBox
- x:Name="txt_point"
- Width="180"
- Height="25"
- pu:TextBoxHelper.FocusedBorderBrush="#B5B5B5"
- pu:TextBoxHelper.FocusedShadowColor="#B5B5B5"
- pu:TextBoxHelper.Icon=""
- pu:TextBoxHelper.Watermark="请输入编号(1~55)"
- Cursor="IBeam" />
- </StackPanel>
- <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
- 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"
- TextChanged="txt_volume_TextChanged" />
- </Grid>
- </Grid>
- <Grid Grid.Row="3">
- <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_multiple"
- 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" />
- </Grid>
- </Grid>
- <Grid Grid.Row="4">
- <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"
- SelectionChanged="cb_mode_SelectionChanged">
- <My:SegmentItem Content="样品" FontSize="8" />
- <My:SegmentItem Content="空白" FontSize="8" />
- </My:SegmentControl>
- <CheckBox
- x:Name="cb_calibration"
- 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" />
- </Grid>
- </Grid>
- </Grid>
- <Grid Grid.Row="5">
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <RadioButton
- Name="rb_acid"
- Height="30"
- Margin="0,0,5,0"
- pu:RadioButtonHelper.BoxHeight="16"
- pu:RadioButtonHelper.BoxWidth="16"
- pu:RadioButtonHelper.CheckedBackground="#6452A4"
- Background="#326452A4"
- Content="酸性"
- Cursor="Hand" />
- <RadioButton
- Name="rb_alkali"
- Height="30"
- Margin="5,0,0,0"
- pu:RadioButtonHelper.BoxHeight="16"
- pu:RadioButtonHelper.BoxWidth="16"
- pu:RadioButtonHelper.CheckedBackground="#6452A4"
- Background="#326452A4"
- Content="碱性"
- Cursor="Hand" />
- </StackPanel>
- </Grid>
- <WrapPanel
- Grid.Row="6"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Button
- Name="btnDialogOk"
- Width="60"
- Height="25"
- Margin="0,0,5,0"
- pu:ButtonHelper.ButtonStyle="Hollow"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- BorderBrush="#6452A4"
- Click="btnDialogOk_Click"
- Content="确定"
- Cursor="Hand"
- Foreground="#FFF" />
- <Button
- Height="25"
- MinWidth="60"
- Margin="4,0"
- pu:ButtonHelper.ButtonStyle="Hollow"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- Background="#6452A4"
- BorderBrush="#6452A4"
- Content="取消"
- Cursor="Hand"
- Foreground="#FFF"
- IsCancel="True" />
- </WrapPanel>
- </Grid>
- </Window>
|