BililiveRecorder/BililiveRecorder.WPF/Pages/AnnouncementPage.xaml

36 lines
2.0 KiB
Plaintext
Raw Normal View History

2020-12-11 19:22:04 +08:00
<ui:Page
x:Class="BililiveRecorder.WPF.Pages.AnnouncementPage"
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:ui="http://schemas.modernwpf.com/2019"
2021-01-03 18:37:47 +08:00
xmlns:l="https://github.com/XAMLMarkupExtensions/WPFLocalizationExtension"
l:LocalizeDictionary.DesignCulture=""
l:ResxLocalizationProvider.DefaultAssembly="BililiveRecorder.WPF"
l:ResxLocalizationProvider.DefaultDictionary="Strings"
2020-12-11 19:22:04 +08:00
xmlns:local="clr-namespace:BililiveRecorder.WPF.Pages"
mc:Ignorable="d"
d:DesignHeight="600" d:DesignWidth="900">
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Button HorizontalAlignment="Right" Margin="5,0" x:Name="RefreshButton" Click="Button_Click" MouseRightButtonUp="Button_MouseRightButtonUp">
<StackPanel Orientation="Horizontal">
<ui:PathIcon Style="{StaticResource PathIconDataRefresh}" VerticalAlignment="Center"/>
2021-01-03 18:37:47 +08:00
<TextBlock Text="{l:Loc AnnouncementPage_RefreshButton}" Margin="5,0,0,0"/>
2020-12-11 19:22:04 +08:00
</StackPanel>
</Button>
<Decorator Margin="5" Grid.Row="1" x:Name="Container"/>
<StackPanel x:Name="Loading" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
<ui:ProgressRing IsActive="True" Width="80" Height="80" Margin="5"/>
<TextBlock TextAlignment="Center" FontSize="18" Text="Loading……"/>
</StackPanel>
2021-01-03 18:37:47 +08:00
<TextBlock x:Name="Error" Grid.Row="1" FontSize="20" Text="{l:Loc AnnouncementPage_FetchFailed}"
2020-12-11 19:22:04 +08:00
HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed"
Foreground="{DynamicResource SystemControlErrorTextForegroundBrush}"/>
</Grid>
</ui:Page>