PlombirLauncher/Launcher-UI/Views/LoadingWindow.axaml

66 lines
1.8 KiB
Plaintext
Raw Normal View History

<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/Sprites/icon.png"
Title="Loading"
RequestedThemeVariant="Dark"
Width="400"
Height="200"
MinWidth="400"
MinHeight="200"
MaxWidth="400"
MaxHeight="200"
Background="#353535"
>
2025-02-21 13:13:35 +03:00
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="*" />
<RowDefinition Height="50" />
2025-02-21 13:13:35 +03:00
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
2025-02-21 13:13:35 +03:00
</Grid.ColumnDefinitions>
<StackPanel
Grid.Row="0"
Grid.ColumnSpan="2" >
2025-02-21 13:13:35 +03:00
<TextBlock
Text="Loading minecraft..."
FontFamily="{StaticResource QuicksandFont}"
HorizontalAlignment="Center" />
<!-- Todo: idk but installAsync ignores token. -->
<!-- <Button HorizontalAlignment="Center"
Content="Stop" Click="onStopDownloadClick" /> -->
</StackPanel>
2025-02-21 13:13:35 +03:00
<Border
Grid.Row="1"
Grid.Column="1"
2025-02-21 13:13:35 +03:00
HorizontalAlignment="Center"
VerticalAlignment="Center">
<TextBlock Text="{Binding LoadingStatus}" />
2025-02-21 13:13:35 +03:00
</Border>
<Border Margin="10" Grid.Row="2" Grid.ColumnSpan="2">
<ProgressBar Minimum="0" Value="{Binding Progress}" Maximum="100" />
2025-02-21 13:13:35 +03:00
</Border>
</Grid>
</Window>