ToggleButton Control
Styles
| Style Key | Semantic Alias | IsDefaultStyle* |
|---|---|---|
MaterialTextToggleButtonStyle |
TextToggleButtonStyle |
|
MaterialIconToggleButtonStyle |
IconToggleButtonStyle |
True |
MaterialDefaultToggleButtonStyle |
True |
IsDefaultStyle*: Styles in this column will be set as the default implicit style for the matching control
Lightweight Styling
Themed
| Key | Type | Light |
|---|---|---|
IconToggleButtonBackground |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBackgroundChecked |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBackgroundCheckedDisabled |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBackgroundCheckedPointerOver |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBackgroundCheckedPressed |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBackgroundDisabled |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBackgroundIndeterminate |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBackgroundIndeterminateDisabled |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBackgroundIndeterminatePointerOver |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBackgroundIndeterminatePressed |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBackgroundPointerOver |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBackgroundPressed |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBorderBrush |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBorderBrushChecked |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBorderBrushCheckedDisabled |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBorderBrushCheckedPointerOver |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBorderBrushCheckedPressed |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBorderBrushDisabled |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBorderBrushFocusedOverlay |
SolidColorBrush |
OnSurfaceFocusedBrush |
IconToggleButtonBorderBrushHoverOverlay |
SolidColorBrush |
OnSurfaceHoverBrush |
IconToggleButtonBorderBrushIndeterminate |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBorderBrushIndeterminateDisabled |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBorderBrushIndeterminatePointerOver |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBorderBrushIndeterminatePressed |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBorderBrushPointerOver |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBorderBrushPressed |
SolidColorBrush |
SystemControlTransparentBrush |
IconToggleButtonBorderBrushSelectedOverlay |
SolidColorBrush |
OnSurfaceFocusedBrush |
IconToggleButtonBorderThickness |
Thickness |
0 |
IconToggleButtonForeground |
SolidColorBrush |
OnSurfaceVariantBrush |
IconToggleButtonForegroundChecked |
SolidColorBrush |
PrimaryBrush |
IconToggleButtonForegroundCheckedDisabled |
SolidColorBrush |
OnSurfaceLowBrush |
IconToggleButtonForegroundCheckedPointerOver |
SolidColorBrush |
PrimaryBrush |
IconToggleButtonForegroundCheckedPressed |
SolidColorBrush |
PrimaryBrush |
IconToggleButtonForegroundDisabled |
SolidColorBrush |
OnSurfaceLowBrush |
IconToggleButtonForegroundIndeterminate |
SolidColorBrush |
PrimaryBrush |
IconToggleButtonForegroundIndeterminateDisabled |
SolidColorBrush |
OnSurfaceLowBrush |
IconToggleButtonForegroundIndeterminatePointerOver |
SolidColorBrush |
PrimaryBrush |
IconToggleButtonForegroundIndeterminatePressed |
SolidColorBrush |
PrimaryBrush |
IconToggleButtonForegroundPointerOver |
SolidColorBrush |
OnSurfaceVariantBrush |
IconToggleButtonForegroundPressed |
SolidColorBrush |
OnSurfaceVariantBrush |
IconToggleButtonMinHeight |
Double |
ControlHeightMedium |
IconToggleButtonMinWidth |
Double |
ControlHeightMedium |
IconToggleButtonStateCircleFill |
SolidColorBrush |
PrimaryBrush |
IconToggleButtonStateCircleOpacityFocused |
Double |
FocusedOpacity |
IconToggleButtonStateCircleOpacityPointerOver |
Double |
HoverOpacity |
IconToggleButtonStateCircleOpacityPressed |
Double |
PressedOpacity |
TextToggleButtonBackground |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBackgroundChecked |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBackgroundCheckedDisabled |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBackgroundCheckedPointerOver |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBackgroundCheckedPressed |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBackgroundDisabled |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBackgroundIndeterminate |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBackgroundIndeterminateDisabled |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBackgroundIndeterminatePointerOver |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBackgroundIndeterminatePressed |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBackgroundPointerOver |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBackgroundPressed |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBorderBrush |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBorderBrushChecked |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBorderBrushCheckedDisabled |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBorderBrushCheckedPointerOver |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBorderBrushCheckedPressed |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBorderBrushDisabled |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBorderBrushFocusedOverlay |
SolidColorBrush |
OnSurfaceFocusedBrush |
TextToggleButtonBorderBrushHoverOverlay |
SolidColorBrush |
OnSurfaceHoverBrush |
TextToggleButtonBorderBrushIndeterminate |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBorderBrushIndeterminateDisabled |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBorderBrushIndeterminatePointerOver |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBorderBrushIndeterminatePressed |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBorderBrushPointerOver |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBorderBrushPressed |
SolidColorBrush |
SystemControlTransparentBrush |
TextToggleButtonBorderBrushSelectedOverlay |
SolidColorBrush |
OnSurfaceFocusedBrush |
TextToggleButtonBorderThickness |
Thickness |
0 |
TextToggleButtonCornerRadius |
CornerRadius |
Radius100CornerRadius |
TextToggleButtonFeedbackFocused |
SolidColorBrush |
OnSurfaceFocusedBrush |
TextToggleButtonFontFamily |
FontFamily |
DefaultFontFamily |
TextToggleButtonFontSize |
Double |
LabelLargeFontSize |
TextToggleButtonForeground |
SolidColorBrush |
PrimaryBrush |
TextToggleButtonForegroundChecked |
SolidColorBrush |
PrimaryBrush |
TextToggleButtonForegroundCheckedDisabled |
SolidColorBrush |
OnSurfaceLowBrush |
TextToggleButtonForegroundCheckedPointerOver |
SolidColorBrush |
PrimaryBrush |
TextToggleButtonForegroundCheckedPressed |
SolidColorBrush |
PrimaryBrush |
TextToggleButtonForegroundDisabled |
SolidColorBrush |
OnSurfaceLowBrush |
TextToggleButtonForegroundIndeterminate |
SolidColorBrush |
PrimaryBrush |
TextToggleButtonForegroundIndeterminateDisabled |
SolidColorBrush |
OnSurfaceLowBrush |
TextToggleButtonForegroundIndeterminatePointerOver |
SolidColorBrush |
PrimaryBrush |
TextToggleButtonForegroundIndeterminatePressed |
SolidColorBrush |
PrimaryBrush |
TextToggleButtonForegroundPointerOver |
SolidColorBrush |
PrimaryBrush |
TextToggleButtonForegroundPressed |
SolidColorBrush |
PrimaryBrush |
TextToggleButtonMinHeight |
Double |
ControlHeightMedium |
TextToggleButtonPadding |
Thickness |
16,8 |
The Dark theme uses the same values as Light.