New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a templated input control for numeric data.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class RadNumericInput : RadCompositeContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewRadCompositeContentViewRadNumericInput

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView...

Inherited Members RadCompositeContentView.StylePropertyRadCompositeContentView.ControlTemplatePropertyRadCompositeContentView.OnBindingContextChanged()RadCompositeContentView.StyleRadCompositeContentView.ControlTemplateRadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)...

Constructors

Initializes a new instance of the RadNumericInput class.

C#
public RadNumericInput()

Fields

Identifies the ActualDecreaseButtonStyle property.

C#
public static readonly BindableProperty ActualDecreaseButtonStyleProperty

Identifies the ActualIncreaseButtonStyle property.

C#
public static readonly BindableProperty ActualIncreaseButtonStyleProperty

Identifies the ActualTextInputStyle property.

C#
public static readonly BindableProperty ActualTextInputStyleProperty

BackgroundColorProperty

BindableProperty

Identifies the BackgroundColor property.

C#
public static readonly BindableProperty BackgroundColorProperty

BackgroundProperty

BindableProperty

Identifies the Background property.

C#
public static readonly BindableProperty BackgroundProperty

BorderBrushProperty

BindableProperty

Identifies the BorderBrush property.

C#
public static readonly BindableProperty BorderBrushProperty

BorderThicknessProperty

BindableProperty

Identifies the BorderThickness property.

C#
public static readonly BindableProperty BorderThicknessProperty

CornerRadiusProperty

BindableProperty

Identifies the CornerRadius property.

C#
public static readonly BindableProperty CornerRadiusProperty

Identifies the DecreaseButtonStyle property.

C#
public static readonly BindableProperty DecreaseButtonStyleProperty

Identifies the DecreaseButtonText property.

C#
public static readonly BindableProperty DecreaseButtonTextProperty

DecreaseCommandProperty

BindableProperty

Identifies the DecreaseCommand property.

C#
public static readonly BindableProperty DecreaseCommandProperty

Identifies the IncreaseButtonStyle property.

C#
public static readonly BindableProperty IncreaseButtonStyleProperty

Identifies the IncreaseButtonText property.

C#
public static readonly BindableProperty IncreaseButtonTextProperty

IncreaseCommandProperty

BindableProperty

Identifies the IncreaseCommand property.

C#
public static readonly BindableProperty IncreaseCommandProperty

IsReadOnlyProperty

BindableProperty

Identifies the IsReadOnly property.

C#
public static readonly BindableProperty IsReadOnlyProperty

MaximumProperty

BindableProperty

Identifies the Maximum property.

C#
public static readonly BindableProperty MaximumProperty

MinimumProperty

BindableProperty

Identifies the Minimum property.

C#
public static readonly BindableProperty MinimumProperty

Represents the visual state name for mouse over state.

C#
public const string MouseOverState = "MouseOver"

Represents the visual state name for read-only focused state.

C#
public const string ReadOnlyFocusedState = "ReadOnlyFocused"

Represents the visual state name for read-only state.

C#
public const string ReadOnlyState = "ReadOnly"

StepProperty

BindableProperty

Identifies the Step property.

C#
public static readonly BindableProperty StepProperty

StringFormatProperty

BindableProperty

Identifies the StringFormat property.

C#
public static readonly BindableProperty StringFormatProperty

TextInputStyleProperty

BindableProperty

Identifies the TextInputStyle property.

C#
public static readonly BindableProperty TextInputStyleProperty

ValueProperty

BindableProperty

Identifies the Value property.

C#
public static readonly BindableProperty ValueProperty

Properties

Gets the actual style that is used to style the decrease button.

C#
public Style ActualDecreaseButtonStyle { get; }

Gets the actual style that is used to style the increase button.

C#
public Style ActualIncreaseButtonStyle { get; }

Gets the actual style that is used to style the text input.

C#
public Style ActualTextInputStyle { get; }

Gets or sets the background brush of the control.

C#
[TypeConverter(typeof(BrushTypeConverter))]
public Brush Background { get; set; }

Gets or sets the background color of the control.

C#
public Color BackgroundColor { get; set; }

Gets or sets the border brush of the control.

C#
[TypeConverter(typeof(BrushTypeConverter))]
public Brush BorderBrush { get; set; }

Gets or sets the border thickness of the control.

C#
public Thickness BorderThickness { get; set; }

CornerRadius

CornerRadius

Gets or sets the corner radius of the control.

C#
[TypeConverter(typeof(CornerRadiusTypeConverter))]
public CornerRadius CornerRadius { get; set; }

Gets or sets the style of the decrease button.

C#
public Style DecreaseButtonStyle { get; set; }

Gets or sets a DecreaseButtonText.

C#
public string DecreaseButtonText { get; set; }

Gets or sets a DecreaseCommand.

C#
public ICommand DecreaseCommand { get; set; }

Gets or sets the style of the increase button.

C#
public Style IncreaseButtonStyle { get; set; }

Gets or sets a IncreaseButtonText.

C#
public string IncreaseButtonText { get; set; }

Gets or sets a IncreaseCommand.

C#
public ICommand IncreaseCommand { get; set; }

Gets or sets a IsReadOnly.

C#
public bool IsReadOnly { get; set; }

Gets or sets a Maximum.

C#
public double Maximum { get; set; }

Gets or sets a Minimum.

C#
public double Minimum { get; set; }

Gets or sets a Step.

C#
public double Step { get; set; }

Gets or sets a StringFormat.

C#
public string StringFormat { get; set; }

Gets or sets the style of the text input.

C#
public Style TextInputStyle { get; set; }

Gets or sets a Value.

C#
public double? Value { get; set; }

Methods

C#
protected override void ChangeVisualState()

Attempts to set focus to this element.

C#
public bool Focus()
Returns:

bool

Called when the control template is applied.

C#
protected override void OnApplyTemplate()

Overrides: RadCompositeContentView.OnApplyTemplate()

Called when a child element is removed from the control.

C#
protected override void OnChildRemoved(Element child, int oldLogicalIndex)
Parameters:childElement

The child element that was removed.

oldLogicalIndexint

The old logical index of the child element.

Overrides: RadContentView.OnChildRemoved(Element, int)

Called when the handler for this control changes.

C#
protected override void OnHandlerChanged()

Overrides: RadContentView.OnHandlerChanged()

Called when a property value changes.

C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

The name of the property that changed.

Overrides: RadCompositeContentView.OnPropertyChanged(string)

Called when a property value is changing.

C#
protected override void OnPropertyChanging(string propertyName = null)
Parameters:propertyNamestring

The name of the property that is changing.

Unsets keyboard focus on this element.

C#
public void Unfocus()

Events

Occures after the Value is changed.

C#
public event EventHandler<ValueChangedEventArgs<double?>> ValueChanged