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

68 lines
3.3 KiB
Plaintext
Raw Permalink Normal View History

<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"
xmlns:cc="using:SPTInstaller.CustomControls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="SPTInstaller.Views.DetailedPreChecksView">
2023-07-29 14:26:45 -04:00
<Grid RowDefinitions="10,AUTO,AUTO,AUTO,*,10" ColumnDefinitions="10,AUTO,*,AUTO,10">
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center"
Content="SPT will be installed into:"
FontSize="16"
FontWeight="SemiBold"
/>
2023-08-25 23:46:11 -04:00
<cc:CacheInfo Grid.Row="1" Grid.Column="2" HorizontalAlignment="Right" Padding="0 0 10 0"
InfoText="{Binding CacheInfoText}" State="{Binding CacheCheckState}"
/>
2023-11-09 10:33:15 -05:00
<TextBlock Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2"
2023-07-29 14:26:45 -04:00
Foreground="DodgerBlue" FontWeight="SemiBold" FontSize="16"
Text="{Binding InstallPath}" TextWrapping="Wrap"
Margin="5"
/>
2023-10-18 20:43:23 -04:00
<Button Grid.Row="1" Grid.RowSpan="3" Grid.Column="3" Padding="20 10"
2023-07-29 14:26:45 -04:00
VerticalAlignment="Top"
FontSize="15" FontWeight="SemiBold"
Classes="yellow"
IsEnabled="{Binding AllowInstall}"
Command="{Binding StartInstallCommand}"
2023-10-18 20:43:23 -04:00
>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding InstallButtonText}" VerticalAlignment="Center" Foreground="Black"/>
<cc:StatusSpinner State="{Binding InstallButtonCheckState}" Margin="2" IsVisible="{Binding !AllowInstall}"/>
</StackPanel>
</Button>
2023-07-29 14:26:45 -04:00
<ScrollViewer Grid.Row="4" Grid.ColumnSpan="5">
2023-08-21 18:57:48 -04:00
<ItemsControl ItemsSource="{Binding PreChecks}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
2023-07-29 14:26:45 -04:00
<StackPanel HorizontalAlignment="Stretch" Margin="10 0"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<cc:DetailedPreCheckItem PreCheckName="{Binding Name}"
IsRequired="{Binding IsRequired}"
2023-07-29 14:26:45 -04:00
PreCheckDetails="{Binding PreCheckDetails}"
ActionButtonCommand="{Binding ActionButtonCommand}"
ActionButtonText="{Binding ActionButtonText}"
ActionButtonIsVisible="{Binding ActionButtonIsVisible}"
2023-08-25 19:09:36 -04:00
State="{Binding State}"
/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
2023-07-29 14:26:45 -04:00
<Border Grid.Row="3" Grid.ColumnSpan="5"
BorderThickness="1" BorderBrush="Black" Height="2" Background="Black"
BoxShadow="0 3 10 2 black"
/>
</Grid>
</UserControl>