Class Button
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
Fields
AppearanceProperty
Identifies the Appearance dependency property.
public static readonly DependencyProperty AppearanceProperty
Field Value
CornerRadiusProperty
Identifies the CornerRadius dependency property.
public static readonly DependencyProperty CornerRadiusProperty
Field Value
IconProperty
Identifies the Icon dependency property.
public static readonly DependencyProperty IconProperty
Field Value
MouseOverBackgroundProperty
Identifies the MouseOverBackground dependency property.
public static readonly DependencyProperty MouseOverBackgroundProperty
Field Value
MouseOverBorderBrushProperty
Identifies the MouseOverBorderBrush dependency property.
public static readonly DependencyProperty MouseOverBorderBrushProperty
Field Value
PressedBackgroundProperty
Identifies the PressedBackground dependency property.
public static readonly DependencyProperty PressedBackgroundProperty
Field Value
PressedBorderBrushProperty
Identifies the PressedBorderBrush dependency property.
public static readonly DependencyProperty PressedBorderBrushProperty
Field Value
PressedForegroundProperty
Identifies the PressedForeground dependency property.
public static readonly DependencyProperty PressedForegroundProperty
Field Value
Properties
Appearance
Gets or sets the Appearance of the control, if available.
[Bindable(true)]
public ControlAppearance Appearance { get; set; }
Property Value
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
Icon
Gets or sets displayed IconElement.
[Bindable(true)]
public IconElement? Icon { get; set; }
Property Value
MouseOverBackground
Gets or sets background Brush.
[Bindable(true)]
public Brush MouseOverBackground { get; set; }
Property Value
MouseOverBorderBrush
Gets or sets border Brush when the user mouses over the button.
[Bindable(true)]
public Brush MouseOverBorderBrush { get; set; }
Property Value
PressedBackground
Gets or sets background Brush when the user clicks the button.
[Bindable(true)]
public Brush PressedBackground { get; set; }
Property Value
PressedBorderBrush
Gets or sets border Brush when the user clicks the button.
[Bindable(true)]
public Brush PressedBorderBrush { get; set; }
Property Value
PressedForeground
Gets or sets the foreground Brush when the user clicks the button.
[Bindable(true)]
public Brush PressedForeground { get; set; }