-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathAboutBox.xaml
More file actions
58 lines (58 loc) · 3.18 KB
/
AboutBox.xaml
File metadata and controls
58 lines (58 loc) · 3.18 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
<m:ExtendedDialog x:Class="Menees.Windows.Presentation.AboutBox" x:ClassModifier="internal"
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:m="clr-namespace:Menees.Windows.Presentation"
mc:Ignorable="d"
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" SizeToContent="WidthAndHeight" Loaded="ExtendedDialog_LoadedAsync">
<Grid x:Name="grid" HorizontalAlignment="Center" VerticalAlignment="Center" Width="{Binding ActualWidth, ElementName=banner, Mode=OneWay}">
<Grid.ColumnDefinitions>
<ColumnDefinition MinWidth="110" Width="Auto"/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Image x:Name="banner" Grid.ColumnSpan="3" Source="AboutBoxBanner.bmp" Stretch="None"/>
<Image x:Name="icon" Grid.Row="1" Height="32" Width="32" Grid.RowSpan="6" VerticalAlignment="Top" Margin="0,16,0,0" Stretch="None"/>
<TextBlock x:Name="productName" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" FontSize="18" FontWeight="SemiBold"
Margin="0,8,12,0" Padding="0,5" TextWrapping="Wrap">
Product Name
</TextBlock>
<TextBlock x:Name="version" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Margin="0,0,12,0" Padding="0,5">
Version 1.0 – 64-bit
</TextBlock>
<TextBlock x:Name="copyright" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" Margin="0,0,12,0" Padding="0,5">
Copyright © 2002-2013 Bill Menees
</TextBlock>
<m:HyperlinkButton x:Name="webLink" Grid.Row="4" Grid.Column="1" Margin="0,5,12,5" Padding="0,5" Content="www.menees.com" Click="WebLink_Clicked" />
<m:HyperlinkButton Grid.Row="4" Grid.Column="2" Margin="0,5,12,5" Padding="0,5" Content="bill@menees.com" Click="EmailLink_Clicked" />
<TextBlock TextWrapping="Wrap" Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="2" Margin="0,0,12,0" Padding="0,5">
This software is CharityWare. If you use it, please donate something to the charity of your choice.
</TextBlock>
<Separator Grid.Row="6" Grid.ColumnSpan="3" Margin="0,12,0,0" />
<Grid Grid.Row="7" Grid.ColumnSpan="3">
<Grid.ColumnDefinitions>
<ColumnDefinition MinWidth="110" Width="Auto"/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<m:HyperlinkButton x:Name="updateLink" Grid.Column="1" Grid.ColumnSpan="2" Content="★ Version 1.1 update available!"
Click="UpdateLink_Clicked" VerticalAlignment="Center" Margin="0,0,110,0"/>
<Button Content="OK" Width="80" Grid.Column="2" IsDefault="True" VerticalAlignment="Center" Padding="3" Margin="12"
m:ExtendedDialog.DialogResult="True" HorizontalAlignment="Right" IsCancel="True"/>
</Grid>
</Grid>
</m:ExtendedDialog>