Color legend plain property dependency property method event
The style class of Button: the properties a style can set on it. Part styles TextStyle (LabelStyle) and BackgroundStyle (ImageStyle). Leaves out Content. Framework defaults: NormalColor, HoverColor, PressedColor and ToggledColor from DefaultButtonNormalColor, DefaultButtonHoverColor, DefaultButtonPressedColor and DefaultButtonToggledColor.
A class deriving from BaseStyle. The styles page shows it in context.
Names are colored by what they are: a property, a method or an event; values and fields keep the plain color.
Properties
BackgroundStyle 馃爢
ImageStyle 路 The style of the image the button draws its background with.
HoverColor 馃爢
Color 路 The solid color while the mouse is over the button. (200, 220, 240) unless set (DefaultSettings.DefaultButtonHoverColor).
NormalColor 馃爢
Color 路 The solid color while nothing happens. (225, 225, 230) unless set (DefaultSettings.DefaultButtonNormalColor).
PressedColor 馃爢
Color 路 The solid color while the button is pressed. (160, 190, 225) unless set (DefaultSettings.DefaultButtonPressedColor).
Text 馃爢
string 路 Creates a centered Label content showing this text, styled by TextStyle.
TextStyle 馃爢
LabelStyle 路 The style of the text content made from Text.
ToggledColor 馃爢
Color 路 The solid color of a Toggle button that is on. (86, 156, 214) unless set (DefaultSettings.DefaultButtonToggledColor).
ToggledOn 馃爢
bool 路 Whether a Toggle button is on. Set it to switch the button from code; OnToggled is raised.
Type 馃爢
ButtonType 路 How the button reacts to the mouse: Normal, Repeat or Toggle.
Methods
ButtonStyle()
IsSet() 馃爢
IsSet(string propertyName) 路 Whether the property is assigned to this style, so the style applies it. Pass the name with nameof; an unknown name gives false.
| Parameter | Type | Description |
|---|---|---|
propertyName |
string |
The name of a property of the style; nameof keeps it right. |