|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <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:Views="clr-namespace:XHWK.WKTool.Helpers"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:XHWK.WKTool"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- Title="KeyVerification"
- Width="400"
- Height="230"
- AllowsTransparency="True"
- Background="Transparent"
- ShowInTaskbar="False"
- WindowStartupLocation="CenterOwner"
- WindowStyle="None"
- mc:Ignorable="d">
-
- <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
- x:Name="btnDown"
- Grid.Row="0"
- Padding="10,0,10,0"
- HorizontalAlignment="Right"
- Click="close_click"
- Content="×"
- Cursor="Hand"
- FontSize="30"
- Foreground="#FFFFFF" />
- </Grid>
- <Grid Grid.Row="1" Margin="30,20,30,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <TextBlock
- Padding="0,0,0,0"
- VerticalAlignment="Center"
- FontSize="20"
- Text="密匙:" />
- <TextBox
- x:Name="txbKey"
- Grid.Column="1"
- Height="46"
- VerticalAlignment="Center"
- VerticalContentAlignment="Center"
- FontSize="18"
- Foreground="gray"
- Text="" />
- </Grid>
-
- <Button
- x:Name="btnEnd"
- Grid.Row="2"
- Height="48"
- Margin="30,0,30,0"
- Click="btnEnd_Click"
- Content="验证"
- Cursor="Hand"
- FontSize="18"
- FontWeight="Bold"
- Foreground="White"
- IsDefault="True">
- <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>
|