11<UserControl xmlns =" https://github.com/avaloniaui"
2- xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
3- xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
4- xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
5- xmlns : lang =" clr-namespace:Vocup.Lang;assembly=Vocup.Avalonia"
6- xmlns : views =" clr-namespace:Vocup.Views;assembly=Vocup.Avalonia"
7- xmlns : vm =" clr-namespace:Vocup.ViewModels;assembly=Vocup.Avalonia"
8- mc : Ignorable =" d" d : DesignWidth =" 450" d : DesignHeight =" 450"
9- x : Class =" Vocup.Views.AboutView"
10- x : DataType =" vm:AboutViewModel" >
11- <Design .DataContext>
12- <vm : AboutDesignViewModel />
13- </Design .DataContext>
2+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
3+ xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
4+ xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
5+ xmlns : lang =" clr-namespace:Vocup.Lang;assembly=Vocup.Avalonia"
6+ xmlns : views =" clr-namespace:Vocup.Views;assembly=Vocup.Avalonia"
7+ xmlns : vm =" clr-namespace:Vocup.ViewModels;assembly=Vocup.Avalonia"
8+ mc : Ignorable =" d" d : DesignWidth =" 450" d : DesignHeight =" 450"
9+ x : Class =" Vocup.Views.AboutView"
10+ x : DataType =" vm:AboutViewModel" >
11+ <Design .DataContext>
12+ <vm : AboutDesignViewModel />
13+ </Design .DataContext>
1414
15- <UserControl .Styles>
16- <Style Selector =" Grid.properties HyperlinkButton" >
17- <Setter Property =" CornerRadius" Value =" 0" />
18- <Setter Property =" Padding" Value =" 0" />
19- <Setter Property =" Margin" Value =" 12,4,4,4" />
20- </Style >
21- <Style Selector =" Grid.properties HyperlinkButton:pointerover /template/ ContentPresenter#PART_ContentPresenter" >
22- <Setter Property =" Background" Value =" Transparent" />
23- </Style >
24- <Style Selector =" Grid.properties TextBlock" >
25- <Setter Property =" Margin" Value =" 4,4,12,4" />
26- </Style >
27- </UserControl .Styles>
15+ <UserControl .Styles>
16+ <Style Selector =" Grid.properties HyperlinkButton" >
17+ <Setter Property =" CornerRadius" Value =" 0" />
18+ <Setter Property =" Padding" Value =" 0" />
19+ <Setter Property =" Margin" Value =" 12,4,4,4" />
20+ </Style >
21+ <Style Selector =" Grid.properties HyperlinkButton:pointerover /template/ ContentPresenter#PART_ContentPresenter" >
22+ <Setter Property =" Background" Value =" Transparent" />
23+ </Style >
24+ <Style Selector =" Grid.properties TextBlock" >
25+ <Setter Property =" Margin" Value =" 4,4,12,4" />
26+ </Style >
27+ </UserControl .Styles>
2828
29- <ScrollViewer >
30- <StackPanel Grid.IsSharedSizeScope=" True" >
31- <Image Source =" /Assets/legacy-rectangle-logo.png" Width =" 248" Margin =" 8" />
32- <TextBlock Text =" {Binding Version}" FontWeight =" SemiBold" TextAlignment =" Center" Margin =" 8" />
33- <TextBlock Text =" {Binding Copyright}" TextAlignment =" Center" TextWrapping =" Wrap" Margin =" 8" />
34- <Grid Margin =" 4" Classes =" properties" HorizontalAlignment =" Center" >
35- <Grid .RowDefinitions>
36- <RowDefinition Height =" Auto" />
37- <RowDefinition Height =" Auto" />
38- <RowDefinition Height =" Auto" />
39- <RowDefinition Height =" Auto" />
40- </Grid .RowDefinitions>
41- <Grid .ColumnDefinitions>
42- <ColumnDefinition SharedSizeGroup =" A" Width =" *" />
43- <ColumnDefinition SharedSizeGroup =" B" Width =" *" />
44- </Grid .ColumnDefinitions>
29+ <ScrollViewer >
30+ <StackPanel Grid.IsSharedSizeScope=" True" >
31+ <Image Source =" /Assets/legacy-rectangle-logo.png" Width =" 248" Margin =" 8" />
32+ <TextBlock Text =" {Binding Version}" FontWeight =" SemiBold" TextAlignment =" Center" Margin =" 8" />
33+ <TextBlock Text =" {Binding Copyright}" TextAlignment =" Center" TextWrapping =" Wrap" Margin =" 8" />
34+ <Grid Margin =" 4" Classes =" properties" HorizontalAlignment =" Center" >
35+ <Grid .RowDefinitions>
36+ <RowDefinition Height =" Auto" />
37+ <RowDefinition Height =" Auto" />
38+ <RowDefinition Height =" Auto" />
39+ <RowDefinition Height =" Auto" />
40+ <RowDefinition Height =" Auto" />
41+ </Grid .RowDefinitions>
42+ <Grid .ColumnDefinitions>
43+ <ColumnDefinition SharedSizeGroup =" A" Width =" *" />
44+ <ColumnDefinition SharedSizeGroup =" B" Width =" *" />
45+ </Grid .ColumnDefinitions>
4546
46- <TextBlock Grid.Row=" 0" Margin =" 4" Text =" {x:Static lang:Resources.AboutView_License}" />
47- <HyperlinkButton Grid.Row=" 0" Grid.Column=" 1" Content =" AGPL-3.0" NavigateUri =" https://github.com/daniel-lerch/vocup/blob/master/LICENSE" />
48- <TextBlock Grid.Row=" 1" Text =" {x:Static lang:Resources.AboutView_SourceCode}" />
49- <HyperlinkButton Grid.Row=" 1" Grid.Column=" 1" Content =" {x:Static lang:Resources.AboutView_VocupOnGithub}" NavigateUri =" https://github.com/daniel-lerch/vocup" />
50- <TextBlock Grid.Row=" 2" Text =" {x:Static lang:Resources.AboutView_Download}" />
51- <HyperlinkButton Grid.Row=" 2" Grid.Column=" 1" Content =" Microsoft Store" NavigateUri =" {Binding MicrosoftStoreLink}" />
52- <TextBlock Grid.Row=" 3" Text =" {x:Static lang:Resources.AboutView_Mail}" />
53- <HyperlinkButton Grid.Row=" 3" Grid.Column=" 1" Content =" daniel.dev@lerchen.net" NavigateUri =" mailto:daniel.dev@lerchen.net" />
54- </Grid >
55- <TextBlock Text =" {x:Static lang:Resources.AboutView_Components}" FontWeight =" SemiBold" TextAlignment =" Center" Margin =" 8" />
56- <views : LicensesControl DataContext =" {Binding Licenses}" Margin =" 4" HorizontalAlignment =" Center" />
57- </StackPanel >
58- </ScrollViewer >
47+ <TextBlock Grid.Row=" 0" Margin =" 4" Text =" {x:Static lang:Resources.AboutView_License}" />
48+ <HyperlinkButton Grid.Row=" 0" Grid.Column=" 1" Content =" AGPL-3.0" NavigateUri =" https://github.com/daniel-lerch/vocup/blob/master/LICENSE" />
49+ <TextBlock Grid.Row=" 1" Text =" {x:Static lang:Resources.AboutView_SourceCode}" />
50+ <HyperlinkButton Grid.Row=" 1" Grid.Column=" 1" Content =" {x:Static lang:Resources.AboutView_VocupOnGithub}" NavigateUri =" https://github.com/daniel-lerch/vocup" />
51+ <TextBlock Grid.Row=" 2" Text =" {x:Static lang:Resources.AboutView_Download}" />
52+ <HyperlinkButton Grid.Row=" 2" Grid.Column=" 1" Content =" Microsoft Store" NavigateUri =" {Binding MicrosoftStoreLink}" />
53+ <TextBlock Grid.Row=" 3" Text =" {x:Static lang:Resources.AboutView_Mail}" />
54+ <HyperlinkButton Grid.Row=" 3" Grid.Column=" 1" Content =" daniel.dev@lerchen.net" NavigateUri =" mailto:daniel.dev@lerchen.net" />
55+ <TextBlock Grid.Row=" 4" Text =" {x:Static lang:Resources.AboutView_Donate}" />
56+ <HyperlinkButton Grid.Row=" 4" Grid.Column=" 1" Content =" GitHub Sponsors" NavigateUri =" https://github.com/sponsors/daniel-lerch" />
57+ </Grid >
58+ <TextBlock Text =" {x:Static lang:Resources.AboutView_Components}" FontWeight =" SemiBold" TextAlignment =" Center" Margin =" 8" />
59+ <views : LicensesControl DataContext =" {Binding Licenses}" Margin =" 4" HorizontalAlignment =" Center" />
60+ </StackPanel >
61+ </ScrollViewer >
5962
6063</UserControl >
0 commit comments