|
493 | 493 | </Style>
|
494 | 494 |
|
495 | 495 |
|
496 |
| - <Style x:Key="MaterialDesignChoiceChipRadioButton" TargetType="{x:Type RadioButton}"> |
| 496 | + <Style x:Key="MaterialDesignChoiceChipRadioButton" TargetType="{x:Type ToggleButton}"> |
497 | 497 | <Setter Property="Background" Value="{DynamicResource MaterialDesign.Brush.Foreground}" />
|
498 | 498 | <Setter Property="BorderThickness" Value="0" />
|
499 | 499 | <Setter Property="Cursor" Value="Hand" />
|
|
506 | 506 | <Setter Property="SnapsToDevicePixels" Value="True" />
|
507 | 507 | <Setter Property="Template">
|
508 | 508 | <Setter.Value>
|
509 |
| - <ControlTemplate TargetType="{x:Type RadioButton}"> |
| 509 | + <ControlTemplate TargetType="{x:Type ToggleButton}"> |
510 | 510 | <ControlTemplate.Resources>
|
511 | 511 | <Style TargetType="{x:Type wpf:PackIcon}">
|
512 | 512 | <Setter Property="FrameworkElement.Height" Value="22" />
|
|
631 | 631 | </Setter>
|
632 | 632 | </Style>
|
633 | 633 |
|
634 |
| - <Style x:Key="MaterialDesignChoiceChipOutlineRadioButton" TargetType="{x:Type RadioButton}"> |
| 634 | + <Style x:Key="MaterialDesignChoiceChipOutlineRadioButton" TargetType="{x:Type ToggleButton}"> |
635 | 635 | <Setter Property="Background" Value="{DynamicResource MaterialDesign.Brush.ForegroundLight}" />
|
636 | 636 | <Setter Property="BorderBrush" Value="{DynamicResource MaterialDesign.Brush.Foreground}" />
|
637 | 637 | <Setter Property="BorderThickness" Value="1" />
|
|
645 | 645 | <Setter Property="SnapsToDevicePixels" Value="True" />
|
646 | 646 | <Setter Property="Template">
|
647 | 647 | <Setter.Value>
|
648 |
| - <ControlTemplate TargetType="{x:Type RadioButton}"> |
| 648 | + <ControlTemplate TargetType="{x:Type ToggleButton}"> |
649 | 649 | <ControlTemplate.Resources>
|
650 | 650 | <Style TargetType="{x:Type wpf:PackIcon}">
|
651 | 651 | <Setter Property="FrameworkElement.Height" Value="22" />
|
|
793 | 793 | </Style>
|
794 | 794 |
|
795 | 795 | <Style x:Key="MaterialDesignChoiceChipPrimaryRadioButton"
|
796 |
| - TargetType="{x:Type RadioButton}" |
| 796 | + TargetType="{x:Type ToggleButton}" |
797 | 797 | BasedOn="{StaticResource MaterialDesignChoiceChipRadioButton}">
|
798 | 798 | <Setter Property="Background" Value="{DynamicResource MaterialDesign.Brush.Primary.Light}" />
|
799 | 799 | <Setter Property="Foreground" Value="{DynamicResource MaterialDesign.Brush.Primary.Dark}" />
|
|
812 | 812 | </Style>
|
813 | 813 |
|
814 | 814 | <Style x:Key="MaterialDesignChoiceChipSecondaryRadioButton"
|
815 |
| - TargetType="{x:Type RadioButton}" |
| 815 | + TargetType="{x:Type ToggleButton}" |
816 | 816 | BasedOn="{StaticResource MaterialDesignChoiceChipRadioButton}">
|
817 | 817 | <Setter Property="Background" Value="{DynamicResource MaterialDesign.Brush.Secondary.Light}" />
|
818 | 818 | <Setter Property="Foreground" Value="{DynamicResource MaterialDesign.Brush.Secondary.Dark}" />
|
|
831 | 831 | </Style>
|
832 | 832 |
|
833 | 833 | <Style x:Key="MaterialDesignChoiceChipPrimaryOutlineRadioButton"
|
834 |
| - TargetType="{x:Type RadioButton}" |
| 834 | + TargetType="{x:Type ToggleButton}" |
835 | 835 | BasedOn="{StaticResource MaterialDesignChoiceChipOutlineRadioButton}">
|
836 | 836 | <Setter Property="Background" Value="{DynamicResource MaterialDesign.Brush.Primary.Light}" />
|
837 | 837 | <Setter Property="BorderBrush" Value="{DynamicResource MaterialDesign.Brush.Primary}" />
|
|
851 | 851 | </Style>
|
852 | 852 |
|
853 | 853 | <Style x:Key="MaterialDesignChoiceChipSecondaryOutlineRadioButton"
|
854 |
| - TargetType="{x:Type RadioButton}" |
| 854 | + TargetType="{x:Type ToggleButton}" |
855 | 855 | BasedOn="{StaticResource MaterialDesignChoiceChipOutlineRadioButton}">
|
856 | 856 | <Setter Property="Background" Value="{DynamicResource MaterialDesign.Brush.Secondary.Light}" />
|
857 | 857 | <Setter Property="BorderBrush" Value="{DynamicResource MaterialDesign.Brush.Secondary}" />
|
|
0 commit comments