Skip to content

NumberPad class

Defined in

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

Summary

        Represents a numeric keypad control for number input.
        

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 NumberPad
class TemplatedControl
TemplatedControl <|-- NumberPad

Inherits from: TemplatedControl

Constructors

NameSummary
.ctor

Properties

NameSummary
ValueGets or sets the current value.
ButtonSizeGets or sets the button size.
SpacingGets or sets the spacing between buttons.
ShowDecimalGets or sets a value indicating whether to show the decimal button.
NumberPressedCommandGets or sets the command executed when a number is pressed.

Fields

NameSummary
static ValuePropertyProperty for [Value](#
static ButtonSizePropertyProperty for [ButtonSize](#
static SpacingPropertyProperty for [Spacing](#
static ShowDecimalPropertyProperty for [ShowDecimal](#
static NumberPressedCommandPropertyProperty for [NumberPressedCommand](#
static NumberPressedEventDefines the [NumberPressed](# event.

Methods

NameSummary
AppendDigitAppends a digit to the value.
ClearClears the value.
BackspaceRemoves the last digit from the value.
OnApplyTemplateCalled when the control's template is applied. In simple terms, this means the method is called just before the control is displayed.

Events

NameSummary
NumberPressedOccurs when a number button is pressed.
Inherited members