Table of Contents

Class Button

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

Inherited from the Button, adding SymbolRegular.

public class Button : Button, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource, IAppearanceControl, IIconControl
Inheritance
Button
Implements
Derived
Inherited Members

Examples

<ui:Button
    Appearance="Primary"
    Content="WPF UI button with font icon"
    Icon="{ui:SymbolIcon Symbol=Fluent24}" />
<ui:Button
    Appearance="Primary"
    Content="WPF UI button with font icon"
    Icon="{ui:FontIcon '🌈'}" />

Remarks

The Button class inherits from the base Button class.

Fields

AppearanceProperty

Identifies the Appearance dependency property.

public static readonly DependencyProperty AppearanceProperty

Field Value

DependencyProperty

CornerRadiusProperty

Identifies the CornerRadius dependency property.

public static readonly DependencyProperty CornerRadiusProperty

Field Value

DependencyProperty

IconProperty

Identifies the Icon dependency property.

public static readonly DependencyProperty IconProperty

Field Value

DependencyProperty

MouseOverBackgroundProperty

Identifies the MouseOverBackground dependency property.

public static readonly DependencyProperty MouseOverBackgroundProperty

Field Value

DependencyProperty

MouseOverBorderBrushProperty

Identifies the MouseOverBorderBrush dependency property.

public static readonly DependencyProperty MouseOverBorderBrushProperty

Field Value

DependencyProperty

PressedBackgroundProperty

Identifies the PressedBackground dependency property.

public static readonly DependencyProperty PressedBackgroundProperty

Field Value

DependencyProperty

PressedBorderBrushProperty

Identifies the PressedBorderBrush dependency property.

public static readonly DependencyProperty PressedBorderBrushProperty

Field Value

DependencyProperty

PressedForegroundProperty

Identifies the PressedForeground dependency property.

public static readonly DependencyProperty PressedForegroundProperty

Field Value

DependencyProperty

Properties

Appearance

Gets or sets the Appearance of the control, if available.

[Bindable(true)]
public ControlAppearance Appearance { get; set; }

Property Value

ControlAppearance

CornerRadius

Gets or sets a value that represents the degree to which the corners of a Border are rounded.

public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius

Icon

Gets or sets displayed IconElement.

[Bindable(true)]
public IconElement? Icon { get; set; }

Property Value

IconElement

MouseOverBackground

Gets or sets background Brush.

[Bindable(true)]
public Brush MouseOverBackground { get; set; }

Property Value

Brush

MouseOverBorderBrush

Gets or sets border Brush when the user mouses over the button.

[Bindable(true)]
public Brush MouseOverBorderBrush { get; set; }

Property Value

Brush

PressedBackground

Gets or sets background Brush when the user clicks the button.

[Bindable(true)]
public Brush PressedBackground { get; set; }

Property Value

Brush

PressedBorderBrush

Gets or sets border Brush when the user clicks the button.

[Bindable(true)]
public Brush PressedBorderBrush { get; set; }

Property Value

Brush

PressedForeground

Gets or sets the foreground Brush when the user clicks the button.

[Bindable(true)]
public Brush PressedForeground { get; set; }

Property Value

Brush