Skip to content

CommandButton class

Defined in

Namespace: CrissCross.Avalonia.UI.Controls Assembly: CrissCross.Avalonia.UI.dll Full name: CrissCross.Avalonia.UI.Controls.CommandButton Modifiers: public

Summary

        Represents a command-aware button that can project execution state, progress, and error content.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471

Class hierarchy
classDiagram
class CommandButton
class Button
Button <|-- CommandButton

Inherits from: Button

Constructors

NameSummary
.ctor

Properties

NameSummary
StateGets or sets the command execution state displayed by the button.
IsExecutingGets or sets a value indicating whether the command is executing.
ProgressGets or sets optional normalized progress from 0.0 to 1.0.
ExecutingContentGets or sets the content shown while the command is executing.
ErrorContentGets or sets optional content shown for a failed command.

Fields

NameSummary
static StatePropertyProperty for [State](#
static IsExecutingPropertyProperty for [IsExecuting](#
static ProgressPropertyProperty for [Progress](#
static ExecutingContentPropertyProperty for [ExecutingContent](#
static ErrorContentPropertyProperty for [ErrorContent](#

Methods

NameSummary
OnPropertyChangedCalled when a avalonia property changes on the object.

Derived types

Inherited members