-
Notifications
You must be signed in to change notification settings - Fork 821
Expand file tree
/
Copy pathReleaseNotesPage.axaml
More file actions
55 lines (47 loc) · 2.49 KB
/
ReleaseNotesPage.axaml
File metadata and controls
55 lines (47 loc) · 2.49 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
<UserControl x:Class="UniGetUI.Avalonia.Views.Pages.ReleaseNotesPage"
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:ReleaseNotesPageViewModel">
<Grid RowDefinitions="Auto,2,*" Margin="8,4,8,8">
<!-- Toolbar -->
<Grid Grid.Row="0" ColumnDefinitions="*,Auto">
<Button Grid.Column="1"
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>