Skip to content

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

NameSummary
.ctor

Properties

NameSummary
IconGets or sets displayed [IconElement](#
AppearanceGets or sets the [Appearance](# of the control, if available.
MouseOverBackgroundGets or sets background Brush when the user interacts with an element with a pointing device.
MouseOverBorderBrushGets or sets border Brush when the user interacts with an element with a pointing device.
PressedForegroundGets or sets foreground when pressed.
PressedBackgroundGets or sets background Brush when the user clicks the button.
PressedBorderBrushGets or sets border Brush when the user clicks the button.
CornerRadiusGets or sets a value that represents the degree to which the corners of a Border are rounded.

Fields

NameSummary
static IconPropertyProperty for [Icon](#
static AppearancePropertyProperty for [Appearance](#
static MouseOverBackgroundPropertyProperty for [MouseOverBackground](#
static MouseOverBorderBrushPropertyProperty for [MouseOverBorderBrush](#
static PressedForegroundPropertyProperty for [PressedForeground](#
static PressedBackgroundPropertyProperty for [PressedBackground](#
static PressedBorderBrushPropertyProperty for [PressedBorderBrush](#
static CornerRadiusPropertyProperty for [CornerRadius](#

Derived types

Inherited members