mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
64 lines
3.3 KiB
XML
64 lines
3.3 KiB
XML
<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:plugins="clr-namespace:Artemis.UI.Screens.Plugins"
|
|
xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
|
|
xmlns:prerequisites="clr-namespace:Artemis.UI.Screens.Plugins.Prerequisites"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="Artemis.UI.Screens.Plugins.PluginPrerequisitesUninstallDialogView"
|
|
x:DataType="plugins:PluginPrerequisitesUninstallDialogViewModel">
|
|
<UserControl.Styles>
|
|
<Styles>
|
|
<Style Selector="Border.status-border">
|
|
<Setter Property="Width" Value="32" />
|
|
<Setter Property="Height" Value="32" />
|
|
<Setter Property="CornerRadius" Value="16" />
|
|
</Style>
|
|
|
|
<Style Selector="Border.status-border avalonia|MaterialIcon">
|
|
<Setter Property="Width" Value="16" />
|
|
<Setter Property="Height" Value="16" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
</Style>
|
|
</Styles>
|
|
</UserControl.Styles>
|
|
<Grid ColumnDefinitions="250,*">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition MinHeight="200" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<ListBox Grid.Row="0"
|
|
Grid.Column="0"
|
|
Items="{CompiledBinding Prerequisites}"
|
|
SelectedItem="{CompiledBinding ActivePrerequisite, Mode=OneWay}"
|
|
IsHitTestVisible="False">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate DataType="{x:Type prerequisites:PluginPrerequisiteViewModel}">
|
|
<StackPanel Margin="0 6" VerticalAlignment="Stretch">
|
|
<TextBlock FontWeight="Bold" Text="{CompiledBinding PluginPrerequisite.Name}" TextWrapping="Wrap" />
|
|
<TextBlock Text="{CompiledBinding PluginPrerequisite.Description}" TextWrapping="Wrap" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
|
|
<ContentControl Grid.Row="0"
|
|
Grid.Column="1"
|
|
Content="{CompiledBinding ActivePrerequisite}"
|
|
VerticalContentAlignment="Stretch"
|
|
HorizontalContentAlignment="Stretch"
|
|
Margin="10 0"
|
|
IsTabStop="False"
|
|
IsVisible="{CompiledBinding ActivePrerequisite, Converter={x:Static ObjectConverters.IsNotNull}}" />
|
|
|
|
<TextBlock Grid.Row="0"
|
|
Grid.Column="1"
|
|
TextWrapping="Wrap"
|
|
Margin="10 0"
|
|
IsVisible="{CompiledBinding ActivePrerequisite, Converter={x:Static ObjectConverters.IsNull}}">
|
|
This plugin/feature installed certain prerequisites in order to function. In this screen you can chose to remove these, this will mean the plugin/feature will no longer work until you reinstall the prerequisites.
|
|
</TextBlock>
|
|
</Grid>
|
|
</UserControl> |