0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-13 09:50:43 -05:00
launcher/project/SPT.Launcher/Views/ConnectServerView.axaml

32 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-03-03 19:25:33 +00:00
<UserControl xmlns="https://github.com/avaloniaui"
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"
2024-05-21 20:15:19 +01:00
xmlns:helpers="using:SPT.Launcher.Helpers"
2023-03-03 19:25:33 +00:00
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
2024-05-21 20:15:19 +01:00
x:Class="SPT.Launcher.Views.ConnectServerView">
2023-03-03 19:25:33 +00:00
<Grid RowDefinitions="*,AUTO,AUTO,AUTO,*">
<Label Content="{Binding connectModel.InfoText}" Grid.Row="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"
/>
<ProgressBar Grid.Row="2" HorizontalAlignment="Center"
VerticalAlignment="Center"
IsIndeterminate="{Binding !connectModel.ConnectionFailed}"
Classes.error="{Binding connectModel.ConnectionFailed}"
/>
<Button Content="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=retry}"
Grid.Row="3"
Margin="10"
HorizontalAlignment="Center"
IsVisible="{Binding connectModel.ConnectionFailed}"
Command="{Binding RetryCommand}"
/>
</Grid>
</UserControl>