SPT-AKI-Installer/SPTInstaller/Views/PreChecksView.axaml

66 lines
3.0 KiB
Plaintext
Raw Normal View History

<UserControl xmlns="https://github.com/avaloniaui"
2023-05-11 23:11:39 -04:00
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:cc="using:SPTInstaller.CustomControls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="SPTInstaller.Views.PreChecksView">
<Grid ColumnDefinitions="10,*,AUTO,*,10"
RowDefinitions="10,*,AUTO,AUTO,AUTO,AUTO,*,10">
2023-05-11 23:11:39 -04:00
<StackPanel Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="2" HorizontalAlignment="Center">
<Label Content="SPT will be installed into this folder:"
HorizontalAlignment="Center"
/>
<TextBlock Text="{Binding InstallPath}" TextWrapping="Wrap"
Foreground="DodgerBlue" HorizontalAlignment="Center"
/>
2023-05-11 23:11:39 -04:00
<Label Content="Move the installer into the folder you want it to install into if this is wrong"
HorizontalAlignment="Center"
/>
</StackPanel>
<Button Grid.Column="2" Grid.Row="3" Content="Start Install" Padding="20 10"
Margin="10"
FontSize="15" FontWeight="SemiBold"
Classes="yellow"
2023-07-12 16:39:37 +02:00
IsEnabled="{Binding AllowInstall}"
2023-05-11 23:11:39 -04:00
Command="{Binding StartInstallCommand}"
/>
2023-08-21 18:57:48 -04:00
<ItemsControl ItemsSource="{Binding PreChecks}" Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="4" HorizontalAlignment="Center">
2023-05-11 23:11:39 -04:00
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<cc:PreCheckItem PreCheckName="{Binding Name}"
IsRunning="{Binding IsRunning}"
IsPending="{Binding IsPending}"
IsRequired="{Binding IsRequired}"
Passed="{Binding Passed}"
/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<Button Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="3" HorizontalAlignment="Center"
Content="Detailed View"
2023-08-03 18:02:38 -04:00
IsEnabled="{Binding AllowDetailsButton}"
Command="{Binding ShowDetailedViewCommand}"
/>
2023-08-03 18:02:38 -04:00
<cc:UpdateInfoCard Grid.Row="1" Grid.RowSpan="4" Padding="10"
VerticalAlignment="Top" HorizontalAlignment="Left"
InfoText="{Binding UpdateInfo.UpdateInfoText}"
ShowUpdateCard="{Binding UpdateInfo.ShowCard}"
NotNowCommand="{Binding DismissUpdateCommand}"
UpdateInstallerCommand="{Binding UpdateInstallerCommand}"
Updating="{Binding UpdateInfo.Updating}"
DownloadProgress="{Binding UpdateInfo.DownloadProgress}"
IndeterminateProgress="{Binding UpdateInfo.CheckingForUpdates}"
UpdateAvailable="{Binding UpdateInfo.UpdateAvailable}"
/>
2023-05-11 23:11:39 -04:00
</Grid>
</UserControl>