-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAboutControlView.xaml
120 lines (111 loc) · 3.42 KB
/
AboutControlView.xaml
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
<UserControl x:Class="BlueDot.AboutControlView"
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:BlueDot"
MouseLeftButtonDown="UserControl_MouseLeftButtonDown"
Background="LightGray"
MaxWidth="500"
BorderThickness="1"
BorderBrush="Black"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<UserControl.Resources>
<local:AboutControlViewModel x:Key="ViewModel" />
</UserControl.Resources>
<Grid DataContext="{Binding Source={StaticResource ViewModel}}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!-- Logo and Title -->
<Grid Grid.Column="0"
Grid.Row="0"
Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Image x:Name="ApplicationLogo"
Grid.Column="0"
Grid.Row="0"
Width="42"
Height="42"
Source="{Binding ApplicationLogo}" />
<Label x:Name="Title"
Content="{Binding Title}"
Grid.Column="1"
Grid.Row="0"
FontSize="16" />
</Grid>
<!-- Description -->
<TextBlock x:Name="Description"
Grid.Column="0"
Grid.Row="1"
Margin="10,0,10,0"
TextWrapping="Wrap"
Text="{Binding Description}"/>
<!-- Version -->
<Grid Grid.Column="0"
Grid.Row="2"
Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0"
Grid.Row="0"
VerticalAlignment="Center"
Text="Version: " />
<Label x:Name="Version"
Content="{Binding Version}"
Grid.Column="1"
Grid.Row="0" />
</Grid>
<!-- Publisher -->
<Grid Grid.Column="0"
Grid.Row="3"
Margin="10, 20">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Image x:Name="PublisherLogo"
Grid.Column="0"
Grid.RowSpan="2"
Width="36"
Height="36"
Source="{Binding PublisherLogo}" />
<TextBlock x:Name="Copyright"
Grid.Column="1"
Grid.Row="0"
Margin="5,2,0,0"
Text="{Binding Copyright}"/>
<Label Grid.Column="1"
Grid.Row="1">
<Hyperlink x:Name="Hyperlink"
RequestNavigate="Link_RequestNavigate"
NavigateUri="{Binding Hyperlink}">
<TextBlock x:Name="HyperlinkText"
Text="{Binding HyperlinkText}"/>
</Hyperlink>
</Label>
</Grid>
<!-- Additional Notes -->
<TextBlock x:Name="AdditionalNotes"
Grid.Column="0"
Grid.Row="4"
Margin="10,0,10,10"
TextWrapping="Wrap"
Text="{Binding AdditionalNotes}"/>
</Grid>
</UserControl>