| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <Window
- x:Class="SHJX.Service.CustomControl.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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
- Title="InputDialog"
- Width="250"
- Height="200"
- VerticalAlignment="Center"
- AllowsTransparency="True"
- BorderThickness="2"
- Loaded="Window_Loaded"
- ResizeMode="NoResize"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- mc:Ignorable="d">
- <Window.Effect>
- <DropShadowEffect
- BlurRadius="24"
- Direction="90"
- ShadowDepth="3"
- Color="#99CCCC" />
- </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="0.7*" />
- <RowDefinition Height="3*" />
- <RowDefinition Height="1*" />
- </Grid.RowDefinitions>
- <StackPanel
- Grid.Row="0"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- Background="#99CCCC"
- MouseMove="StackPanel_MouseMove"
- Orientation="Horizontal">
- <Image
- Grid.RowSpan="3"
- Grid.Column="0"
- Width="18"
- Height="18"
- Margin="10,0,5,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Source="/SHJX.Service.Resource;component/Resources/输入.png" />
- <TextBlock
- VerticalAlignment="Center"
- FontFamily="幼圆"
- FontSize="10"
- FontWeight="Black"
- Foreground="White"
- Text="输入"
- TextAlignment="Center" />
- </StackPanel>
- <UniformGrid
- Grid.Row="1"
- Grid.Column="1"
- Rows="3">
- <StackPanel
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBox
- x:Name="txt_point"
- Width="206"
- Height="30"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- pu:TextBoxHelper.Icon=""
- pu:TextBoxHelper.Watermark="请输入数字(1~48)"
- Foreground="#99CCCC" />
- </StackPanel>
- <Grid Grid.Column="0" Grid.ColumnSpan="2">
- <My:SegmentControl
- x:Name="cb_concentration"
- Width="123"
- Height="30"
- HorizontalAlignment="Center"
- BorderBrush="#99CCCC"
- Cursor="Hand"
- Foreground="#99CCCC"
- SelectedIndex="0">
- <My:SegmentItem Content="高浓度" FontSize="10" />
- <My:SegmentItem Content="低浓度" FontSize="10" />
- </My:SegmentControl>
- </Grid>
- <Grid Grid.Column="0" Grid.ColumnSpan="2">
- <My:SegmentControl
- x:Name="cb_Mode"
- Width="180"
- Height="30"
- HorizontalAlignment="Center"
- BorderBrush="#99CCCC"
- Cursor="Hand"
- Foreground="#99CCCC"
- SelectedIndex="0">
- <My:SegmentItem Content="水样" FontSize="10" Width="60" />
- <My:SegmentItem Content="空白" FontSize="10" Width="60" />
- <My:SegmentItem Content="标定" FontSize="10" Width="60" />
- </My:SegmentControl>
- </Grid>
- </UniformGrid>
- <WrapPanel
- Grid.Row="2"
- Grid.ColumnSpan="2"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Button
- Name="btnDialogOk"
- Width="60"
- Height="30"
- Margin="10,0"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="12"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Click="btnDialogOk_Click"
- Content="确定"
- Cursor="Hand"
- Foreground="#FFF" />
- <Button
- Height="30"
- MinWidth="60"
- Margin="10,0"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="12"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- Content="取消"
- Cursor="Hand"
- Foreground="#FFF"
- IsCancel="True" />
- </WrapPanel>
- </Grid>
- </Window>
|