[]
        
(Showing Draft Content)

C1.Blazor.Core.C1Button

C1Button Class

Button with a built-in style matching the suite.

Inheritance
C1Button
Namespace: C1.Blazor.Core
Assembly: C1.Blazor.Core.dll
Syntax
public class C1Button : C1HtmlButton, IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject

Constructors

Name Description
C1Button()

Initializes a new instance of the C1Button class.

Fields

Name Description
BorderAlignmentProperty

Identifies the BorderAlignment dependency property.

FocusBrushProperty

Identifies the FocusBrush dependency property.

IsFocusableProperty

Identifies the IsFocusable dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

_isFocusable

Gets or sets whether the button can receive the focus.

Properties

Name Description
BorderAlignment

Gets or sets the alignment of the border relative to the control bounds.

FocusBrush

Gets or sets the C1Color used to highlight the focused control.

IsFocusable

Gets or sets whether the button can receive the focus.

MouseOverBrush

Gets or sets the C1Color used to highlight the control when it has the mouse over.

PressedBrush

Gets or sets the C1Color used to paint a button when it is pressed.

Methods

Name Description
Dispose(bool)
OnAfterRender(bool)
OnBackgroundChanged()

Called when the background changed.

OnBorderBrushChanged()

Called when the border brush changed.

OnBorderThicknessChanged()

Called when the border thickness changed.

OnCornerRadiusChanged()

Called when the corner-radius changed.

OnPaddingChanged()

Called when the padding changed.