PlombirLauncher/src/LauncherGUI/Views/LoadingWindow.axaml

58 lines
1.9 KiB
Plaintext
Raw Normal View History

2025-02-21 13:13:35 +03:00
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:LauncherGUI.ViewModels"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="200"
x:Class="LauncherGUI.Views.LoadingWindow"
x:DataType="vm:LoadingWindowViewModel"
Icon="/Assets/icon.png"
Title="loading"
RequestedThemeVariant="Dark"
Width="400" Height="200"
MinWidth="400" MinHeight="200"
MaxWidth="400" MaxHeight="200"
Background="#353535">
<Design.DataContext>
<!-- This only sets the DataContext for the previewer in an IDE,
to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
<vm:LoadingWindowViewModel/>
</Design.DataContext>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="*"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="Loading minecraft..."
FontFamily="{StaticResource QuicksandFont}"
HorizontalAlignment="Center"
Grid.Row="0" Grid.ColumnSpan="2"/>
<Border
Grid.Row="1" Grid.Column="1"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<TextBlock Text="{Binding LoadingStatus}"/>
</Border>
<Border
Margin="10"
Grid.Row="2" Grid.ColumnSpan="2">
<ProgressBar
Minimum="0"
Value="{Binding Progress}"
Maximum="100"/>
</Border>
</Grid>
</Window>