@@ -7,8 +7,21 @@
|
||||
ShowInTaskbar="False"
|
||||
WindowDecorations="None"
|
||||
WindowStartupLocation="CenterScreen">
|
||||
<Image Source="/Assets/SplashScreen.png"
|
||||
Stretch="UniformToFill"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch"/>
|
||||
<Viewbox Stretch="UniformToFill">
|
||||
<Canvas Width="1086" Height="1448">
|
||||
<Image Source="/Assets/SplashScreen.png" Width="1086" Height="1448"/>
|
||||
<Border Canvas.Left="326" Canvas.Top="1004" Width="480" Height="31"
|
||||
Background="#303234" CornerRadius="16" ClipToBounds="True">
|
||||
<ProgressBar x:Name="StartupProgress" Minimum="0" Maximum="100" Value="0"
|
||||
Height="31" Background="#303234" Foreground="#229DDD"
|
||||
ShowProgressText="False"/>
|
||||
</Border>
|
||||
<Border Canvas.Left="295" Canvas.Top="1042" Width="520" Height="58"
|
||||
Background="#202326" CornerRadius="12">
|
||||
<TextBlock x:Name="StartupStatus" Text="Start wird vorbereitet …"
|
||||
Foreground="White" FontSize="24" TextAlignment="Center"
|
||||
VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
</Canvas>
|
||||
</Viewbox>
|
||||
</Window>
|
||||
|
||||
@@ -5,4 +5,10 @@ namespace LehrerApp.Desktop.Views;
|
||||
public partial class SplashWindow : Window
|
||||
{
|
||||
public SplashWindow() => InitializeComponent();
|
||||
|
||||
public void SetProgress(int value, string status)
|
||||
{
|
||||
StartupProgress.Value = value;
|
||||
StartupStatus.Text = status;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user