52 lines
2.5 KiB
Plaintext
Raw Normal View History

2023-07-30 16:15:52 -04:00
<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"
2023-08-25 23:46:11 -04:00
xmlns:cc="using:SPTInstaller.CustomControls"
2023-05-11 23:11:39 -04:00
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
2024-05-01 10:31:55 -04:00
x:Class="SPTInstaller.Views.MessageView">
<UserControl.Styles>
<Style Selector="Grid.error">
<Setter Property="Background" Value="#330000" />
</Style>
<Style Selector="Label.error">
<Setter Property="Foreground" Value="Crimson" />
</Style>
2023-05-11 23:11:39 -04:00
2024-05-01 10:31:55 -04:00
</UserControl.Styles>
2024-07-04 12:25:19 -04:00
<Grid ColumnDefinitions="*,AUTO,*" RowDefinitions="*,AUTO,20,AUTO,20,Auto,Auto,*"
2024-05-01 10:31:55 -04:00
Classes.error="{Binding HasErrors}">
2023-05-11 23:11:39 -04:00
2024-05-01 10:31:55 -04:00
<Label Grid.Column="1" Grid.Row="1"
Classes.error="{Binding HasErrors}">
<TextBlock Text="{Binding Message}" FontSize="18"
TextWrapping="Wrap"
MaxWidth="500"
HorizontalAlignment="Center" />
</Label>
<Button Grid.Column="1" Grid.Row="3"
Content="Close" Command="{Binding CloseCommand}"
FontSize="15" FontWeight="SemiBold"
Classes.yellow="{Binding !HasErrors}"
IsVisible="{Binding ShowCloseButton}"
HorizontalAlignment="Center"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center"
Padding="20 10" />
2024-06-09 16:14:57 -04:00
2024-07-04 12:25:19 -04:00
<StackPanel Grid.Row="5" Grid.Column="1" Orientation="Horizontal" Spacing="10">
<CheckBox IsChecked="{Binding OpenInstallFolder}" Content="Open Install Folder" IsVisible="{Binding ShowOptions}"/>
<CheckBox IsChecked="{Binding AddShortcuts}" Content="Add Desktop Shortcuts" IsVisible="{Binding ShowOptions}"/>
</StackPanel>
2023-08-25 23:46:11 -04:00
2024-07-04 12:25:19 -04:00
<cc:CacheInfo Grid.Row="7" Grid.ColumnSpan="3" Padding="10" Margin="10 0 0 0"
2023-08-25 23:46:11 -04:00
VerticalAlignment="Bottom"
2024-07-04 12:25:19 -04:00
InfoText="{Binding CacheInfoText}" State="{Binding CacheCheckState}"
/>
<Button Grid.Row="7" Grid.Column="2" Classes="link" Content="{Binding ClipCommandText}"
Command="{Binding CopyLogFileToClipboard}" HorizontalAlignment="Right" VerticalAlignment="Bottom"
/>
2024-05-01 10:31:55 -04:00
</Grid>
</UserControl>