Skip to content

Instantly share code, notes, and snippets.

@Platonenkov
Platonenkov / ToggleButtonCheckBox.xaml
Created May 8, 2021 16:29
Toggle Button CheckBox style
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:p="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<SolidColorBrush x:Key="WhiteBrush" Color="White" p:Freeze="True"/>
<!--форма переключателя-->
<ControlTemplate x:Key="ToggleButtonCheckBoxTemplate" TargetType="{x:Type CheckBox}">
<ControlTemplate.Resources>
<SolidColorBrush x:Key="ToggleButton.CheckedBackgroundBrush" p:Freeze="true">DarkBlue</SolidColorBrush>