2026-06-05 13:44:39 +09:00

28 lines
1.9 KiB
XML

<base:UCKeyValueBase x:Class="AuroraUIComponent.UserControls.UCKeyValueVerticalCheckBox"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:AuroraUIComponent.UserControls"
xmlns:base="clr-namespace:AuroraUIComponent.UserControls.KeyValueBase"
mc:Ignorable="d"
d:DesignHeight="50" d:DesignWidth="500" FontSize="12">
<Grid x:Name="GridParent">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Background="{Binding KeyTextBgColor, RelativeSource={RelativeSource AncestorType=UserControl}}" Margin="2">
<TextBlock x:Name="TextKey" Grid.Row="0" Margin="5 0" FontWeight="Bold"
Text="{Binding KeyText, RelativeSource={RelativeSource AncestorType=UserControl}}"
FontSize="{Binding KeyTextSize, RelativeSource={RelativeSource AncestorType=UserControl}}"
Foreground="{Binding KeyTextFgColor, RelativeSource={RelativeSource AncestorType=UserControl}}"/>
</Border>
<CheckBox Grid.Row="1" Name="TextValue" HorizontalContentAlignment="Center" Padding="2 0"
Margin="2" VerticalContentAlignment="Center" Height="Auto"
HorizontalAlignment="{Binding ValueHorizontalAlignment, RelativeSource={RelativeSource AncestorType=UserControl}}"
IsEnabled="{Binding IsEnabled, RelativeSource={RelativeSource AncestorType=UserControl}}"
IsChecked="{Binding ValueBool, RelativeSource={RelativeSource AncestorType=UserControl}}"/>
</Grid>
</base:UCKeyValueBase>