|
1 |
| -<Window x:Class="WPFDevelopers.Samples.ExampleViews.AboutWindow" |
2 |
| - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 |
| - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 |
| - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 |
| - xmlns:ws="https://github.com/WPFDevelopersOrg/WPFDevelopers" |
7 |
| - mc:Ignorable="d" WindowStartupLocation="CenterScreen" |
8 |
| - SnapsToDevicePixels="True" WindowStyle="None" |
9 |
| - TextOptions.TextFormattingMode="Display" |
10 |
| - ResizeMode="NoResize" |
11 |
| - Height="400" Width="300" |
12 |
| - Background="{DynamicResource WD.BackgroundSolidColorBrush}" |
13 |
| - Title="关于" > |
| 1 | +<wd:Window |
| 2 | + x:Class="WPFDevelopers.Samples.ExampleViews.AboutWindow" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 7 | + xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers" |
| 8 | + Title="关于" |
| 9 | + Width="300" |
| 10 | + Height="400" |
| 11 | + BorderBrush="Transparent" |
| 12 | + BorderThickness="0" |
| 13 | + NoChrome="True" |
| 14 | + ResizeMode="NoResize" |
| 15 | + TitleBackground="{DynamicResource WD.WindowBorderBrushSolidColorBrush}" |
| 16 | + TitleHeight="30" |
| 17 | + WindowStartupLocation="CenterScreen" |
| 18 | + WindowStyle="ToolWindow" |
| 19 | + mc:Ignorable="d"> |
| 20 | + <wd:Window.TitleBar> |
| 21 | + <Grid Height="30" VerticalAlignment="Center"> |
| 22 | + <Grid.ColumnDefinitions> |
| 23 | + <ColumnDefinition Width="Auto" /> |
| 24 | + <ColumnDefinition Width="*" /> |
| 25 | + <ColumnDefinition Width="Auto" MinWidth="30" /> |
| 26 | + </Grid.ColumnDefinitions> |
| 27 | + <TextBlock |
| 28 | + Margin="10,0" |
| 29 | + VerticalAlignment="Center" |
| 30 | + FontSize="14" |
| 31 | + Foreground="{DynamicResource WD.WindowForegroundColorBrush}" |
| 32 | + IsHitTestVisible="False" |
| 33 | + Text="关于" /> |
| 34 | + <Button |
| 35 | + x:Name="CloseButton" |
| 36 | + Grid.Column="2" |
| 37 | + Width="25" |
| 38 | + Height="25" |
| 39 | + Margin="0,2,4,0" |
| 40 | + HorizontalAlignment="Right" |
| 41 | + wd:ElementHelper.IsRound="True" |
| 42 | + Click="CloseButton_Click" |
| 43 | + Style="{StaticResource WD.NormalButton}" |
| 44 | + ToolTip="关闭"> |
| 45 | + <wd:PathIcon |
| 46 | + Width="10" |
| 47 | + Height="10" |
| 48 | + Foreground="{DynamicResource WD.WindowForegroundColorBrush}" |
| 49 | + Kind="WindowClose" /> |
| 50 | + </Button> |
| 51 | + </Grid> |
| 52 | + </wd:Window.TitleBar> |
14 | 53 | <Grid>
|
15 | 54 | <Grid.RowDefinitions>
|
16 |
| - <RowDefinition Height="4*"/> |
17 |
| - <RowDefinition Height="6*"/> |
| 55 | + <RowDefinition Height="4*" /> |
| 56 | + <RowDefinition Height="6*" /> |
18 | 57 | </Grid.RowDefinitions>
|
19 |
| - <Rectangle Fill="{DynamicResource WD.WindowBorderBrushSolidColorBrush}"/> |
20 |
| - <TextBlock Text="关于" |
21 |
| - Foreground="{DynamicResource WD.WindowForegroundColorBrush}" |
22 |
| - Margin="10,4"/> |
23 |
| - |
| 58 | + <Rectangle Fill="{DynamicResource WD.WindowBorderBrushSolidColorBrush}" /> |
24 | 59 | <Rectangle Width="120">
|
25 | 60 | <Rectangle.Fill>
|
26 |
| - <ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/WPFDevelopers.ico" Stretch="Uniform"/> |
| 61 | + <ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/WPFDevelopers.ico" Stretch="Uniform" /> |
27 | 62 | </Rectangle.Fill>
|
28 | 63 | </Rectangle>
|
29 |
| - <Button x:Name="CloseButton" Width="30" Height="30" |
30 |
| - HorizontalAlignment="Right" |
31 |
| - VerticalAlignment="Top" |
32 |
| - Style="{StaticResource WD.WindowButtonStyle}" |
33 |
| - ToolTip="关闭" |
34 |
| - Click="CloseButton_Click"> |
35 |
| - <Path Data="{StaticResource WD.WindowCloseGeometry}" |
36 |
| - Fill="{DynamicResource WD.WindowForegroundColorBrush}" |
37 |
| - Height="10" |
38 |
| - Width="10" |
39 |
| - Stretch="UniformToFill"/> |
40 |
| - </Button> |
| 64 | + |
41 | 65 | <Grid Grid.Row="1" Margin="0,10">
|
42 | 66 | <Grid.RowDefinitions>
|
43 |
| - <RowDefinition/> |
44 |
| - <RowDefinition/> |
45 |
| - <RowDefinition Height="Auto"/> |
46 |
| - <RowDefinition Height="Auto"/> |
47 |
| - <RowDefinition Height="Auto"/> |
| 67 | + <RowDefinition /> |
| 68 | + <RowDefinition /> |
| 69 | + <RowDefinition Height="Auto" /> |
| 70 | + <RowDefinition Height="Auto" /> |
| 71 | + <RowDefinition Height="Auto" /> |
48 | 72 | </Grid.RowDefinitions>
|
49 |
| - <TextBlock Text="WPFDevelopers" FontSize="20" |
50 |
| - HorizontalAlignment="Center" |
51 |
| - VerticalAlignment="Bottom" |
52 |
| - Padding="0,4"/> |
53 |
| - <TextBlock Text="微信号公众号:WPFDevelopers" |
54 |
| - HorizontalAlignment="Center" |
55 |
| - VerticalAlignment="Top" |
56 |
| - Padding="0,4" |
57 |
| - Grid.Row="1"/> |
58 |
| - <TextBlock FontSize="11" |
59 |
| - HorizontalAlignment="Center" |
60 |
| - VerticalAlignment="Bottom" |
61 |
| - Foreground="{DynamicResource WD.PrimaryNormalSolidColorBrush}" |
62 |
| - Grid.Row="2"> |
63 |
| - <Hyperlink NavigateUri="https://github.com/yanjinhuagood/WPFDevelopers.git" |
64 |
| - RequestNavigate="GithubHyperlink_RequestNavigate"> Github 源码</Hyperlink> |
65 |
| - <Run/> |
66 |
| - <Run/> |
67 |
| - <Run/> |
68 |
| - <Hyperlink NavigateUri="https://gitee.com/WPFDevelopersOrg/WPFDevelopers.git" |
69 |
| - RequestNavigate="GiteeHyperlink_RequestNavigate"> 码云源码</Hyperlink> |
| 73 | + <TextBlock |
| 74 | + Padding="0,4" |
| 75 | + HorizontalAlignment="Center" |
| 76 | + VerticalAlignment="Bottom" |
| 77 | + FontSize="20" |
| 78 | + Text="WPFDevelopers" /> |
| 79 | + <TextBlock |
| 80 | + Grid.Row="1" |
| 81 | + Padding="0,4" |
| 82 | + HorizontalAlignment="Center" |
| 83 | + VerticalAlignment="Top" |
| 84 | + Text="微信号公众号:WPFDevelopers" /> |
| 85 | + <TextBlock |
| 86 | + Grid.Row="2" |
| 87 | + HorizontalAlignment="Center" |
| 88 | + VerticalAlignment="Bottom" |
| 89 | + FontSize="11" |
| 90 | + Foreground="{DynamicResource WD.PrimaryNormalSolidColorBrush}"> |
| 91 | + <Hyperlink NavigateUri="https://github.com/yanjinhuagood/WPFDevelopers.git" RequestNavigate="GithubHyperlink_RequestNavigate">Github 源码</Hyperlink> |
| 92 | + <Run /> |
| 93 | + <Run /> |
| 94 | + <Run /> |
| 95 | + <Hyperlink NavigateUri="https://gitee.com/WPFDevelopersOrg/WPFDevelopers.git" RequestNavigate="GiteeHyperlink_RequestNavigate">码云源码</Hyperlink> |
70 | 96 |
|
71 | 97 | </TextBlock>
|
72 |
| - <TextBlock FontSize="11" |
73 |
| - HorizontalAlignment="Center" |
74 |
| - Grid.Row="3" |
75 |
| - VerticalAlignment="Bottom"> |
76 |
| - <Hyperlink NavigateUri="https://gitee.com/yanjinhua/WPFDevelopers.git" |
77 |
| - RequestNavigate="QQHyperlink_RequestNavigate"> QQ群:340500857 | QQ群:458041663</Hyperlink> |
| 98 | + <TextBlock |
| 99 | + Grid.Row="3" |
| 100 | + HorizontalAlignment="Center" |
| 101 | + VerticalAlignment="Bottom" |
| 102 | + FontSize="11"> |
| 103 | + <Hyperlink NavigateUri="https://gitee.com/yanjinhua/WPFDevelopers.git" RequestNavigate="QQHyperlink_RequestNavigate">QQ群:340500857 | QQ群:458041663</Hyperlink> |
78 | 104 | </TextBlock>
|
79 |
| - <TextBlock Text="Copyright © 2022 WPFDevelopers. All rights reserved." |
80 |
| - HorizontalAlignment="Center" FontSize="11" |
81 |
| - VerticalAlignment="Bottom" |
82 |
| - Padding="0,10" |
83 |
| - Grid.Row="4"/> |
| 105 | + <TextBlock |
| 106 | + Grid.Row="4" |
| 107 | + Padding="0,10" |
| 108 | + HorizontalAlignment="Center" |
| 109 | + VerticalAlignment="Bottom" |
| 110 | + FontSize="11" |
| 111 | + Text="Copyright © 2022 WPFDevelopers. All rights reserved." /> |
84 | 112 | </Grid>
|
85 | 113 | </Grid>
|
86 |
| -</Window> |
| 114 | +</wd:Window> |
0 commit comments