|
5 | 5 | xmlns:v="using:SourceGit.Views" |
6 | 6 | mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
7 | 7 | x:Class="SourceGit.Views.About" |
8 | | - x:DataType="v:About" |
| 8 | + x:Name="ThisControl" |
9 | 9 | Icon="/App.ico" |
10 | 10 | Title="{DynamicResource Text.About}" |
11 | 11 | SizeToContent="WidthAndHeight" |
12 | 12 | CanResize="False" |
13 | 13 | WindowStartupLocation="CenterScreen"> |
14 | 14 | <Grid RowDefinitions="Auto,*"> |
15 | 15 | <!-- TitleBar --> |
16 | | - <Grid Grid.Row="0" Height="28" IsVisible="{Binding !UseSystemWindowFrame}"> |
| 16 | + <Grid Grid.Row="0" Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}"> |
17 | 17 | <Border Background="{DynamicResource Brush.TitleBar}" |
18 | 18 | BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}" |
19 | 19 | PointerPressed="BeginMoveWindow"/> |
|
46 | 46 | <StackPanel Height="48" Orientation="Horizontal"> |
47 | 47 | <TextBlock Classes="bold" Text="SourceGit" FontSize="32" /> |
48 | 48 | <Border Margin="12,0,0,0" Height="20" CornerRadius="10" Background="{DynamicResource Brush.Accent}" Effect="drop-shadow(0 0 6 #40000000)"> |
49 | | - <TextBlock Classes="primary" Margin="8,0" Text="{Binding Version}" FontSize="12" Foreground="White"/> |
| 49 | + <TextBlock x:Name="TxtVersion" Classes="primary" Margin="8,0" FontSize="12" Foreground="White"/> |
50 | 50 | </Border> |
51 | 51 | </StackPanel> |
52 | 52 |
|
53 | 53 | <TextBlock Margin="2,0,0,0" Text="{DynamicResource Text.About.SubTitle}" FontSize="16"/> |
54 | 54 |
|
55 | | - <TextBlock Margin="2,8,0,0" Text="{Binding Copyright}" Foreground="{DynamicResource Brush.FG2}"/> |
| 55 | + <TextBlock x:Name="TxtCopyright" Margin="2,8,0,0" Foreground="{DynamicResource Brush.FG2}"/> |
56 | 56 |
|
57 | 57 | <StackPanel Orientation="Vertical" Margin="0,24,0,0"> |
58 | 58 | <StackPanel Orientation="Horizontal" Height="18"> |
|
0 commit comments