Repository navigation
Expand file tree
/
Copy pathAboutWindow.xaml
More file actions
121 lines (119 loc) · 4.75 KB
/
Copy pathAboutWindow.xaml
File metadata and controls
121 lines (119 loc) · 4.75 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<wd:Window
x:Class="WPFDevelopers.Samples.ExampleViews.AboutWindow"
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:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers"
Title="关于"
Width="300"
Height="400"
BorderBrush="Transparent"
BorderThickness="0"
ResizeMode="NoResize"
TitleBackground="{DynamicResource WD.WindowBorderBrush}"
TitleBarMode="None"
TitleHeight="30"
WindowStartupLocation="CenterOwner"
WindowStyle="ToolWindow"
mc:Ignorable="d">
<wd:Window.TitleBar>
<Grid Height="30" VerticalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" MinWidth="30" />
</Grid.ColumnDefinitions>
<TextBlock
Margin="10,0"
VerticalAlignment="Center"
FontSize="14"
Foreground="{DynamicResource WD.WindowTextBrush}"
IsHitTestVisible="False"
Text="关于" />
<Button
x:Name="CloseButton"
Grid.Column="2"
Width="25"
Height="25"
Margin="0,2,4,0"
HorizontalAlignment="Right"
wd:ElementHelper.IsRound="True"
Click="CloseButton_Click"
Style="{StaticResource WD.NormalButton}"
ToolTip="关闭">
<wd:PathIcon
Width="10"
Height="10"
Foreground="{DynamicResource WD.WindowTextBrush}"
Kind="WindowClose" />
</Button>
</Grid>
</wd:Window.TitleBar>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="4*" />
<RowDefinition Height="6*" />
</Grid.RowDefinitions>
<Rectangle Fill="{DynamicResource WD.WindowBorderBrush}" />
<Rectangle Width="120">
<Rectangle.Fill>
<ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/WPFDevelopers.ico" Stretch="Uniform" />
</Rectangle.Fill>
</Rectangle>
<Grid Grid.Row="1" Margin="0,10">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel
HorizontalAlignment="Center"
VerticalAlignment="Bottom">
<TextBlock
Padding="0,4"
HorizontalAlignment="Center"
FontSize="20"
Text="WPFDevelopers" />
<TextBlock
x:Name="VersionText"
Padding="0,4"
HorizontalAlignment="Center" />
</StackPanel>
<TextBlock
Grid.Row="1"
Padding="0,4"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Text="微信号公众号:WPFDevelopers" />
<TextBlock
Grid.Row="2"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
FontSize="11"
Foreground="{DynamicResource WD.PrimaryBrush}">
<Hyperlink NavigateUri="https://github.com/yanjinhuagood/WPFDevelopers.git" RequestNavigate="GithubHyperlink_RequestNavigate">Github 源码</Hyperlink>
<Run />
<Run />
<Run />
<Hyperlink NavigateUri="https://gitee.com/WPFDevelopersOrg/WPFDevelopers.git" RequestNavigate="GiteeHyperlink_RequestNavigate">码云源码</Hyperlink>
</TextBlock>
<TextBlock
Grid.Row="3"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
FontSize="11">
<Hyperlink NavigateUri="https://gitee.com/yanjinhua/WPFDevelopers.git" RequestNavigate="QQHyperlink_RequestNavigate">QQ群:340500857 | QQ群:458041663</Hyperlink>
</TextBlock>
<TextBlock
Grid.Row="4"
Padding="0,10"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
FontSize="11"
Text="Copyright © 2022 WPFDevelopers. All rights reserved." />
</Grid>
</Grid>
</wd:Window>