This repository has been archived by the owner on Jun 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSplashPage.xaml
46 lines (40 loc) · 2.97 KB
/
SplashPage.xaml
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
<Page
x:Class="AvansApp.SplashPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:converter="using:AvansApp.Converters"
DataContext="{Binding SplashPageViewModel, Source={StaticResource Locator}}"
mc:Ignorable="d">
<Page.Resources>
<ResourceDictionary>
<converter:VisibilityConverter x:Key="VisibilityConverter" />
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="./Styles/Styles.xaml" />
<ResourceDictionary Source="./Styles/Themes.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Page.Resources>
<Grid Background="{ThemeResource MyApplicationPageBackgroundThemeBrush}">
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="50" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Image Grid.Row="0" Grid.Column="0" Source="./Assets/SplashScreen.scale-200.png" HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" MaxWidth="700" MaxHeight="500" Height="Auto" />
<TextBlock Grid.Row="1" Grid.Column="0" Text="{x:Bind ViewModel.ProgressionText, Mode=OneWay}" TextWrapping="Wrap" Margin="40,0"
FontSize="18" TextAlignment="Center" FontWeight="Normal" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{ThemeResource MyLoadingTextForegroundBrush}" />
<ProgressRing IsActive="{x:Bind ViewModel.IsProgressionRingActive, Mode=OneWay}" Grid.Row="2" Grid.Column="0" Width="60" Height="60" Visibility="Visible"
HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{ThemeResource MyProgressRingForegroundBrush}" />
<Button x:Uid="TryAgainButton" Grid.Row="2" Grid.Column="0" Command="{x:Bind ViewModel.OnTryAgainButtonClickCommand, Mode=OneWay}" Visibility="{x:Bind ViewModel.IsTryAgainButtonVisible, Mode=OneWay, Converter={StaticResource VisibilityConverter}}"
Style="{ThemeResource MyButton}" Width="175" Height="35" VerticalAlignment="Stretch" />
<!--<HyperlinkButton x:Uid="SplashPageDisruptionLink" Grid.Row="3" Grid.Column="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Command="{x:Bind ViewModel.OnDisruptionsButtonClickCommand, Mode=OneWay}" Visibility="{x:Bind ViewModel.IsTryAgainButtonVisible, Mode=OneWay, Converter={StaticResource VisibilityConverter}}" />-->
</Grid>
</Grid>
</Page>