Button class¶
Defined in
Namespace: CrissCross.WPF.UI.Controls
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.Controls.Button
Modifiers: public
Summary¶
Inherited from the Button, adding SymbolRegular.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Class hierarchy
classDiagram
class Button
class Button
Button <|-- Button
class IAppearanceControl {
<>
}
IAppearanceControl <|.. Button
class IIconControl {
<>
}
IIconControl <|.. Button
Inherits from: Button
Implements: IAppearanceControl, IIconControl
Remarks¶
The Button class inherits from the base Button class.
Examples¶
<ui:Button
Appearance="Primary"
Content="WPF button with font icon"
Icon="{ui:SymbolIcon Symbol=Fluent24}" />
<ui:Button
Appearance="Primary"
Content="WPF button with font icon"
Icon="{ui:FontIcon ''}" />
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| Icon | Gets or sets displayed [IconElement](# |
| Appearance | Gets or sets the [Appearance](# of the control, if available. |
| MouseOverBackground | Gets or sets background Brush when the user interacts with an element with a pointing device. |
| MouseOverBorderBrush | Gets or sets border Brush when the user interacts with an element with a pointing device. |
| PressedForeground | Gets or sets foreground when pressed. |
| PressedBackground | Gets or sets background Brush when the user clicks the button. |
| PressedBorderBrush | Gets or sets border Brush when the user clicks the button. |
| CornerRadius | Gets or sets a value that represents the degree to which the corners of a Border are rounded. |
Fields¶
| Name | Summary |
|---|---|
| static IconProperty | Property for [Icon](# |
| static AppearanceProperty | Property for [Appearance](# |
| static MouseOverBackgroundProperty | Property for [MouseOverBackground](# |
| static MouseOverBorderBrushProperty | Property for [MouseOverBorderBrush](# |
| static PressedForegroundProperty | Property for [PressedForeground](# |
| static PressedBackgroundProperty | Property for [PressedBackground](# |
| static PressedBorderBrushProperty | Property for [PressedBorderBrush](# |
| static CornerRadiusProperty | Property for [CornerRadius](# |