AboutWindowHost.xaml
2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<UserControl x:Class="SmartScan.SetControl.WPF.AboutWindowHost"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:SmartScan.SetControl.WPF"
mc:Ignorable="d"
d:DesignHeight="339" d:DesignWidth="486">
<UserControl.Resources>
<LinearGradientBrush x:Key="LogoBrush" StartPoint="0,0" EndPoint="1,0">
<GradientStop Color="#0077cc" Offset="0"/>
<GradientStop Color="#00ccff" Offset="1"/>
</LinearGradientBrush>
</UserControl.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- 标题栏 -->
<Grid Grid.Row="0" Background="#1E1E1E">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Image Source="/Resources/App.png" Name="logos" />
<TextBlock Grid.Column="0" Text="关于" Foreground="White" FontSize="14" FontFamily="微软雅黑"
HorizontalAlignment="Center" Grid.ColumnSpan="3" VerticalAlignment="Center" Name="text1"/>
<StackPanel Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right">
<Button Width="30" Height="30" Content="−" Background="Transparent"
Foreground="White" BorderThickness="0" Name="minimizeButton"/>
<Button Width="30" Height="30" Content="×" Background="Transparent"
Foreground="White" BorderThickness="0" Name="closeButton"/>
</StackPanel>
</Grid>
<!-- 内容区域 -->
<Grid Grid.Row="1" Background="#121212">
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<Image Source="/Resources/App.png" Width="400" />
<TextBlock Text="物料注册系统" FontSize="28" Foreground="White" FontFamily="微软雅黑"
HorizontalAlignment="Center" Margin="0,0,0,30" Name="text2"/>
<TextBlock Text="4.1.9238.19114" FontSize="18" Foreground="#666666"
HorizontalAlignment="Center" Margin="0,0,0,10" x:Name="versionTextBlock" MouseLeftButtonDown="VersionTextBlock_MouseLeftButtonDown"/>
</StackPanel>
</Grid>
</Grid>
</UserControl>