31 lines
1.3 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"
2023-08-25 19:09:36 -04:00
xmlns:cc="using:SPTInstaller.CustomControls"
xmlns:convt="using:SPTInstaller.Converters"
2023-05-11 23:11:39 -04:00
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="SPTInstaller.CustomControls.PreCheckItem">
2023-08-25 19:09:36 -04:00
<UserControl.Resources>
<convt:StatusSpinnerIsStateConverter x:Key="IsStateConverter"/>
</UserControl.Resources>
2023-05-11 23:11:39 -04:00
<UserControl.Styles>
<Style Selector="Label.bold">
<Setter Property="FontWeight" Value="Bold"/>
</Style>
</UserControl.Styles>
2023-08-25 19:09:36 -04:00
<Grid ColumnDefinitions="AUTO, AUTO" Margin="3">
<cc:StatusSpinner State="{Binding State, RelativeSource={RelativeSource AncestorType=UserControl}}"/>
2023-05-11 23:11:39 -04:00
<Label Grid.Column="1"
Content="{Binding PreCheckName, RelativeSource={RelativeSource AncestorType=UserControl}}"
2023-08-25 19:09:36 -04:00
Classes.bold="{Binding State, RelativeSource={RelativeSource AncestorType=UserControl}
Converter={StaticResource ResourceKey=IsStateConverter},
ConverterParameter=Running}"
2023-05-11 23:11:39 -04:00
/>
</Grid>
</UserControl>