123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <Window x:Class="XHWK.WKTool.KeyVerification"
- 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:XHWK.WKTool"
- xmlns:Views="clr-namespace:XHWK.WKTool.Helpers"
- Title="KeyVerification" Width="300"
- Height="230"
- AllowsTransparency="True"
- Background="Transparent"
- ShowInTaskbar="False"
- WindowStartupLocation="CenterOwner"
- WindowStyle="None"
- mc:Ignorable="d" BorderThickness="7">
- <Window.Effect>
- <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
- </Window.Effect>
- <Window.Resources>
- <Style x:Key="oiliu" TargetType="ListBoxItem">
- <!-- 设置控件模板 -->
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ListBoxItem">
- <Border
- Margin="4,0,0,0"
- Padding="0"
- Background="{TemplateBinding Background}">
- <ContentPresenter
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- TextBlock.Foreground="{TemplateBinding Foreground}" />
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <DataTemplate x:Key="UserTpl">
- <StackPanel
- Width="70.5"
- Height="auto"
- Background="Transparent">
- <TextBlock
- Padding="0,12,0,0"
- HorizontalAlignment="Left"
- FontSize="20"
- Foreground="#3C525B"
- Text="{Binding username}" />
- </StackPanel>
- </DataTemplate>
- </Window.Resources>
- <Views:ZJClippingBorder Background="White">
- <Grid Margin="0,0,0,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="50" />
- <RowDefinition Height="*" />
- <RowDefinition Height="75" />
- </Grid.RowDefinitions>
- <!-- 头部 -->
- <Grid
- Grid.Row="0"
- Height="50"
- Background="#4597FF">
- <TextBlock
- x:Name="title_tb"
- Grid.Row="0"
- Margin="15,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="White"
- Text="产品激活" />
- <!--<Button
- Grid.Column="0"
- Width="46"
- Height="46"
- Margin="0,0,10,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Background="White"
- Click="close_click" Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- BorderBrush="{TemplateBinding Control.BorderBrush}"
- BorderThickness="0"
- CornerRadius="20">
- <ContentPresenter
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding ContentControl.Content}" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- <Image
- Width="40"
- Height="40"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Source="./Images/rollCall_1.png"
- Stretch="Fill" />
- </Button>-->
- <Button Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" VerticalAlignment="Top" Foreground="#FFFFFF" FontSize="30" Padding="10,2,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="close_click"/>
- </Grid>
- <Grid Grid.Row="1" Margin="30,20,30,0">
- <StackPanel Orientation="Horizontal" Height="43">
- <TextBlock Text="密匙:" FontSize="20" Padding="0,5,0,0"/>
- <TextBox x:Name="txbKey" Text="" Width="164" Foreground="gray" FontSize="18" VerticalContentAlignment="Center"/>
- </StackPanel>
- </Grid>
-
- <Button Cursor="Hand"
- x:Name="btnEnd"
- Grid.Row="2"
- Height="48"
- Margin="30,0,30,0"
- Click="btnEnd_Click"
- Content="验证"
- FontWeight="Bold"
- FontSize="18"
- Foreground="White">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- BorderBrush="{TemplateBinding Control.BorderBrush}"
- BorderThickness="0"
- CornerRadius="3">
- <Border.Background>#6098FF</Border.Background>
- <ContentPresenter
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding ContentControl.Content}" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
-
- </Views:ZJClippingBorder>
- </Window>
|