Files
ShrlAlgoToolkit/WPFDark/Controls/BiaRadioButton.xaml

27 lines
1.4 KiB
Plaintext
Raw Normal View History

2025-07-11 09:20:23 +08:00
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:controls="clr-namespace:WPFDark.Controls"
xmlns:wpf="clr-namespace:WPFDark"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style TargetType="{x:Type controls:BiaRadioButton}">
<Setter Property="Foreground" Value="{DynamicResource ForegroundBrushKey}" />
<Setter Property="Height" Value="20.0" />
<Setter Property="CornerRadius" Value="{x:Static wpf:Boxes.BasicCornerRadiusPrim}" />
<Setter Property="Background" Value="{DynamicResource ActiveBackgroundBrushKey}" />
<Setter Property="MarkBrush" Value="{DynamicResource AccentBrushKey}" />
<Setter Property="Behavior" Value="{x:Static controls:BiaToggleButtonBehavior.RadioButton}" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="MarkBorderColor" Value="{DynamicResource AccentColorKey}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="{DynamicResource InactiveForegroundBrushKey}" />
<Setter Property="MarkBrush" Value="{DynamicResource InactiveForegroundBrushKey}" />
<Setter Property="MarkBorderColor" Value="{DynamicResource InactiveBorderColorKey}" />
</Trigger>
</Style.Triggers>
</Style>
</ResourceDictionary>