123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <Window x:Class="NEIntelligentControl2.Windows.ConfirmWindow"
- 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:local="clr-namespace:NEIntelligentControl2.Windows"
- mc:Ignorable="d"
- Title="控制校验" Height="776" Width="1350" WindowStartupLocation="CenterScreen" ShowInTaskbar="False" ResizeMode="NoResize" WindowStyle="None" Background="{x:Null}" Closing="Window_Closing">
- <WindowChrome.WindowChrome>
- <WindowChrome/>
- </WindowChrome.WindowChrome>
- <Window.Resources>
- <Style x:Key="GenerateButtonStyle" TargetType="{x:Type Button}">
- <Setter Property="Background" Value="#FFFE8864"/>
- <Setter Property="Foreground" Value="WhiteSmoke"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Padding" Value="17,6"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Margin" Value="20,0"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true" CornerRadius="3">
- <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" TargetName="border" Value="#FFFE9777"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" TargetName="border" Value="#FFFE8864"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ConfirmButtonStyle" TargetType="{x:Type Button}">
- <Setter Property="Background" Value="#FF006ACC"/>
- <Setter Property="Foreground" Value="WhiteSmoke"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Padding" Value="17,6"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Margin" Value="20,0"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true" CornerRadius="3">
- <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" TargetName="border" Value="#FF2E81CC"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" TargetName="border" Value="#FF006ACC"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Window.Resources>
- <Window.Effect>
- <DropShadowEffect ShadowDepth="0" RenderingBias="Quality" BlurRadius="7"/>
- </Window.Effect>
- <Grid Background="#FF454545" Margin="5">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <TextBlock x:Name="_TBTitle" Foreground="WhiteSmoke" FontSize="15" Margin="5"/>
- <Grid Grid.Row="1" Margin="5,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Border CornerRadius="7,7,0,0" Background="#FF5F5F5F">
- <TextBlock Text="校验通过" Margin="5" Foreground="WhiteSmoke"/>
- </Border>
- <Border Grid.Row="1" CornerRadius="0,0,7,7" Background="WhiteSmoke">
- <ScrollViewer Template="{DynamicResource ScrollViewerTemplate}" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" Margin="0,0,0,5">
- <UniformGrid x:Name="_UGAllow" Columns="8" VerticalAlignment="Top" Margin="5">
- </UniformGrid>
- </ScrollViewer>
- </Border>
- </Grid>
- <Grid Grid.Row="2" Margin="5,10,5,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Border CornerRadius="7,7,0,0" Background="#FF5F5F5F">
- <TextBlock Text="校验不通过" Margin="5" Foreground="WhiteSmoke"/>
- </Border>
- <Border Grid.Row="1" CornerRadius="0,0,7,7" Background="WhiteSmoke">
- <ScrollViewer Template="{DynamicResource ScrollViewerTemplate}" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" Margin="0,0,0,5">
- <UniformGrid x:Name="_UGNotAllow" Columns="8" VerticalAlignment="Top">
- </UniformGrid>
- </ScrollViewer>
- </Border>
- </Grid>
- <StackPanel Grid.Row="3" Orientation="Horizontal" VerticalAlignment="Stretch" HorizontalAlignment="Center">
- <Button Content="发 送" Style="{DynamicResource ConfirmButtonStyle}" Margin="10" Padding="12,3" Click="Button_Click" Tag="send"/>
- <Button Content="取 消" Style="{DynamicResource GenerateButtonStyle}" Margin="10" Padding="12,3" Click="Button_Click" Tag="cancel"/>
- </StackPanel>
- </Grid>
- </Window>
|