-
Notifications
You must be signed in to change notification settings - Fork 821
Expand file tree
/
Copy pathHelpPage.axaml
More file actions
93 lines (81 loc) · 4.37 KB
/
HelpPage.axaml
File metadata and controls
93 lines (81 loc) · 4.37 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
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
<UserControl x:Class="UniGetUI.Avalonia.Views.Pages.HelpPage"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:automation="clr-namespace:Avalonia.Automation;assembly=Avalonia.Controls"
xmlns:vm="using:UniGetUI.Avalonia.ViewModels.Pages"
xmlns:controls="using:UniGetUI.Avalonia.Views.Controls"
xmlns:t="using:UniGetUI.Avalonia.MarkupExtensions"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:DataType="vm:HelpPageViewModel">
<Grid RowDefinitions="Auto,2,*" Margin="8,4,8,8">
<!-- Toolbar -->
<Grid Grid.Row="0" ColumnDefinitions="Auto,Auto,Auto,Auto,*,Auto">
<Button Grid.Column="0"
x:Name="BackButton"
Width="35" Height="35" Padding="6"
CornerRadius="4,0,0,4"
automation:AutomationProperties.Name="{t:Translate Go back}"
Click="BackButton_Click">
<controls:SvgIcon Path="avares://UniGetUI.Avalonia/Assets/Symbols/backward.svg"
Foreground="White" Width="16" Height="16"/>
</Button>
<Button Grid.Column="1"
x:Name="ForwardButton"
Width="35" Height="35" Padding="6"
CornerRadius="0"
automation:AutomationProperties.Name="{t:Translate Go forward}"
Click="ForwardButton_Click">
<controls:SvgIcon Path="avares://UniGetUI.Avalonia/Assets/Symbols/forward.svg"
Foreground="White" Width="16" Height="16"/>
</Button>
<Button Grid.Column="2"
Width="35" Height="35" Padding="6"
CornerRadius="0"
automation:AutomationProperties.Name="{t:Translate Go to home page}"
Click="HomeButton_Click">
<controls:SvgIcon Path="avares://UniGetUI.Avalonia/Assets/Symbols/home.svg"
Foreground="White" Width="16" Height="16"/>
</Button>
<Button Grid.Column="3"
Width="35" Height="35" Padding="6"
CornerRadius="0,4,4,0"
automation:AutomationProperties.Name="{t:Translate Reload page}"
Click="ReloadButton_Click">
<controls:SvgIcon Path="avares://UniGetUI.Avalonia/Assets/Symbols/reload.svg"
Foreground="White" Width="16" Height="16"/>
</Button>
<Button Grid.Column="5"
Height="35"
Command="{Binding OpenInBrowserCommand}"
automation:AutomationProperties.Name="{t:Translate View page on browser}">
<TextBlock Text="{t:Translate View page on browser}"
automation:AutomationProperties.AccessibilityView="Raw"/>
</Button>
</Grid>
<!-- Progress bar shown while navigating -->
<ProgressBar Grid.Row="1"
x:Name="NavProgressBar"
IsIndeterminate="True"
IsVisible="False"
Height="2"
CornerRadius="0"
automation:AutomationProperties.AccessibilityView="Raw"/>
<!-- WebView -->
<Border x:Name="WebViewBorder" Grid.Row="2" CornerRadius="6" ClipToBounds="True">
<controls:UniGetUiWebView x:Name="WebViewControl"/>
</Border>
<!-- Linux fallback -->
<StackPanel x:Name="LinuxFallbackPanel" Grid.Row="2"
HorizontalAlignment="Center" VerticalAlignment="Center"
Spacing="12" IsVisible="False">
<TextBlock Text="{t:Translate The built-in browser is not supported on Linux yet.}"
TextAlignment="Center" TextWrapping="Wrap" MaxWidth="400"/>
<Button HorizontalAlignment="Center" Command="{Binding OpenInBrowserCommand}">
<TextBlock Text="{t:Translate Open in browser}"
automation:AutomationProperties.AccessibilityView="Raw"/>
</Button>
</StackPanel>
</Grid>
</UserControl>