2
2
xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
3
3
xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
4
4
xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
5
- xmlns:vm=" using:Z80andrew.SerialDisk.SerialDiskUI.ViewModels"
5
+ xmlns:vm=" using:Z80andrew.SerialDisk.SerialDiskUI.ViewModels"
6
6
x:Class=" Z80andrew.SerialDisk.SerialDiskUI.Views.AboutWindow"
7
7
mc : Ignorable =" d"
8
8
Width=" 370"
11
11
CanResize=" False"
12
12
Icon=" /Assets/Icons/info.ico"
13
13
WindowStartupLocation=" CenterOwner" >
14
-
14
+
15
15
<Window .Styles>
16
16
<StyleInclude Source =" /Assets/Styles/DefaultStyle.axaml" />
17
17
27
27
<Setter Property =" TextBlock.Foreground" Value =" Black" />
28
28
</Style >
29
29
30
- <Style Selector =" TabControl" >
30
+ <Style Selector =" TabControl.AboutTabs " >
31
31
<Setter Property =" TabControl.ItemsPanel" >
32
32
<ItemsPanelTemplate >
33
33
<UniformGrid Rows =" 1" HorizontalAlignment =" Center" Height =" 5" Margin =" 0,13,0,20" />
34
34
</ItemsPanelTemplate >
35
35
</Setter >
36
36
</Style >
37
+
38
+ <Style Selector =" TabItem.AboutTab" >
39
+ <Setter Property =" FontSize" Value =" 16" />
40
+ <Setter Property =" HorizontalAlignment" Value =" Center" />
41
+ <Setter Property =" Padding" Value =" 12,5,12,5" />
42
+ </Style >
43
+
44
+ <Style Selector =" TabItem.AboutTab.Panel" >
45
+ <Setter Property =" Background" Value =" Green" />
46
+ </Style >
37
47
</Window .Styles>
38
48
39
49
<Design .DataContext>
49
59
<Border Classes =" SectionContainer" DockPanel.Dock=" Top" >
50
60
<DockPanel HorizontalAlignment =" Center" >
51
61
<Border BorderBrush =" White" DockPanel.Dock=" Top" >
52
- <DockPanel DockPanel.Dock=" Top" Background =" White" >
53
- <Viewbox DockPanel.Dock=" Top" StretchDirection =" DownOnly" Stretch =" Uniform" >
54
- <TextBlock FontFamily =" /Assets/Fonts/AtariST8x16SystemFont.ttf#"
55
- Text ="
62
+ <DockPanel DockPanel.Dock=" Top" Background =" White" >
63
+ <Viewbox DockPanel.Dock=" Top" StretchDirection =" DownOnly" Stretch =" Uniform" >
64
+ <TextBlock FontFamily =" /Assets/Fonts/AtariST8x16SystemFont.ttf#"
65
+ Text ="
56
66
_____ _ ______ _ __
57
67
/ ___/___ _____(_)___ / / __ \(_)____/ /__
58
68
o o o o o \__ \/ _ \/ ___/ / __ `/ / / / / / ___/ //_/
59
69
o o o o ___/ / __/ / / / /_/ / / /_/ / (__ ) ,<
60
- /____/\___/_/ /_/\____/_/_____/_/____/_/|_|" >
70
+ /____/\___/_/ /_/\____/_/_____/_/____/_/|_|" >
71
+
61
72
</TextBlock >
62
73
</Viewbox >
63
- <TextBlock DockPanel.Dock=" Right" HorizontalAlignment =" Right" VerticalAlignment =" Bottom"
64
- Margin =" 0,0,10,0" Text =" {Binding VersionNote}" ></TextBlock >
65
- </DockPanel >
74
+ <TextBlock DockPanel.Dock=" Right" HorizontalAlignment =" Right" VerticalAlignment =" Bottom"
75
+ Margin =" 0,0,10,0" Text =" {Binding VersionNote}" ></TextBlock >
76
+ </DockPanel >
66
77
</Border >
67
78
68
79
<DockPanel LastChildFill =" False" DockPanel.Dock=" Top" Height =" 150" >
69
80
70
- <TabControl DockPanel.Dock=" Top" >
71
- <TabItem Header =" About" FontSize = " 15 " BorderThickness = " 4 " HorizontalContentAlignment = " Center " >
72
- <DockPanel DockPanel.Dock=" Top" Margin = " 0,0,0,10 " >
81
+ <TabControl Classes = " AboutTabs " DockPanel.Dock=" Top" >
82
+ <TabItem Header =" About" Classes = " AboutTab " >
83
+ <DockPanel DockPanel.Dock=" Top" >
73
84
<TextBlock Margin =" 10,0,10,10" DockPanel.Dock=" Top" HorizontalAlignment =" Center" >by z80andrew</TextBlock >
74
85
<Button Classes =" URL" Background =" Transparent" Foreground =" Blue" DockPanel.Dock=" Top"
75
86
HorizontalAlignment=" Center" Command =" {Binding ShowWebsiteCommand}" Content =" {Binding WebsiteButtonText}" ></Button >
@@ -78,7 +89,7 @@ o o o o o \__ \/ _ \/ ___/ / __ `/ / / / / / ___/ //_/
78
89
HorizontalAlignment=" Center" VerticalContentAlignment =" Center" Command =" {Binding ShowLatestVersionWebpageCommand}" Content =" {Binding NewVersionCheckLabelText}" />
79
90
</DockPanel >
80
91
</TabItem >
81
- <TabItem Header =" Credits" FontSize = " 15 " BorderThickness = " 4 " HorizontalContentAlignment = " Center " >
92
+ <TabItem Header =" Credits" Classes = " AboutTab " >
82
93
<ScrollViewer Margin =" 0,0,0,10" AllowAutoHide =" False" VerticalScrollBarVisibility =" Auto" HorizontalScrollBarVisibility =" Disabled" >
83
94
<DataGrid Margin =" 10,0,10,0" IsReadOnly =" True" HeadersVisibility =" None" AutoGenerateColumns =" True" AlternatingRowBackground =" LightGray" Items =" {Binding Credits}" >
84
95
</DataGrid >
@@ -91,8 +102,8 @@ o o o o o \__ \/ _ \/ ___/ / __ `/ / / / / / ___/ //_/
91
102
<DockPanel DockPanel.Dock=" Bottom" >
92
103
<Button Margin =" 0,0,0,10" DockPanel.Dock=" Bottom" HorizontalAlignment =" Center" Command =" {Binding CloseAboutCommand}" >Close</Button >
93
104
</DockPanel >
94
-
105
+
95
106
</DockPanel >
96
107
</Border >
97
- </DockPanel >
108
+ </DockPanel >
98
109
</Window >
0 commit comments