[]
        
(Showing Draft Content)

C1.WinUI.Input.C1NumericBox

C1NumericBox Class

The C1NumericBox control is a numeric editor that allows you to display and edit numeric values in many formats.

Inheritance
C1NumericBox
Implements
Namespace: C1.WinUI.Input
Assembly: C1.WinUI.Input.dll
Syntax
public class C1NumericBox : C1View, IDisposable

Constructors

Name Description
C1NumericBox()

Initializes a new instance of the C1NumericBox class.

Fields

Name Description
AllowNullProperty

Identifies the AllowNull dependency property.

CultureProperty

The Culture property is obsolete, use the FrameworkElement.Language property instead.

DecreaseButtonStyleProperty

Identifies the DecreaseButtonStyle dependency property.

DecreaseIconStyleProperty

Identifies the DecreaseIconStyle dependency property.

DecreaseIconTemplateProperty

Identifies the DecreaseIconTemplate dependency property.

DelayProperty

Identifies the Delay dependency property.

FocusBrushProperty

Identifies the FocusBrush dependency property.

FormatProperty

Identifies the Format dependency property.

HandleUpDownKeysProperty

Identifies the HandleUpDownKeys dependency property.

IncreaseButtonStyleProperty

Identifies the IncreaseButtonStyle dependency property.

IncreaseIconStyleProperty

Identifies the IncreaseIconStyle dependency property.

IncreaseIconTemplateProperty

Identifies the IncreaseIconTemplate dependency property.

IncrementProperty

Identifies the Increment dependency property.

InputScopeProperty

Identifies the InputScope dependency property.

IntervalProperty

Identifies the Interval dependency property.

IsReadOnlyProperty

Identifies the IsReadOnly dependency property.

MaximumProperty

Identifies the Maximum dependency property.

MinimumProperty

Identifies the Minimum dependency property.

MouseOverBorderBrushProperty

Identifies the MouseOverBorderBrush dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

PlaceholderProperty

Identifies the Placeholder dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

RangeValidationModeProperty

Identifies the RangeValidationMode dependency property.

SelectOnFocusProperty

Identifies the SelectOnFocus dependency property.

SelectionLengthProperty

Identifies the SelectionLength dependency property.

SelectionStartProperty

Identifies the SelectionStart dependency property.

ShowButtonsProperty

Identifies the ShowButtons dependency property.

TextAlignmentProperty

Identifies the TextAlignment dependency property.

ValidationDecoratorStyleProperty

Identifies the ValidationDecoratorStyle dependency property.

ValueProperty

Identifies the Value dependency property.

Properties

Name Description
AllowNull

Gets or sets whether the user can enter nulls values.

Culture

The Culture property is obsolete, use the FrameworkElement.Language property instead.

DecreaseButtonStyle

Gets or sets the style of the button that decreases the value.

DecreaseIconStyle

Gets or sets the style of the icon shown in the decrease button.

DecreaseIconTemplate

Gets or sets the template of the icon used in the decrease button.

Delay

Gets or sets the delay for the Increase and Decrease buttons.

FocusBrush

Gets or sets the Microsoft.UI.Xaml.Media.Brush used to highlight the focused control.

Format

Gets or sets the value for the Format of the C1NumericBox.

HandleUpDownKeys

Gets or sets If the control handles the Up / Down / PageUp / PageDown keys.

IncreaseButtonStyle

Gets or sets the style of the button that increases the value.

IncreaseIconStyle

Gets or sets the style of the icon shown in the increase button.

IncreaseIconTemplate

Gets or sets the template of the icon used in the increase button.

Increment

Gets or sets the increment applied when the user pressed the up/down arrow keys.

InputScope

Gets or sets the keyboard type that will appear when the user set the focus in the numeric box.

Interval

Gets or sets the interval for the Increase and Decrease buttons.

IsFocused

Gets whether the control is focused.

IsMouseOver

Gets whether the mouse is over the control.

IsReadOnly

Gets or sets the value that determines if the C1NumericBox is read-only.

Maximum

Gets or sets the maximum value allowed for the C1NumericBox.

Minimum

Gets or sets the minimum value allowed for the C1NumericBox.

MouseOverBorderBrush

Gets or sets the Microsoft.UI.Xaml.Media.Brush used to highlight the border of the control when it has the mouse over.

MouseOverBrush

Gets or sets the Microsoft.UI.Xaml.Media.Brush used to highlight the control when it has the mouse over.

Placeholder

Gets or sets the placeholder text.

PressedBrush

Gets or sets the Microsoft.UI.Xaml.Media.Brush used to paint a button when it is pressed.

RangeValidationMode

Gets or sets the mode used to validate the range between Minimum and Maximum.

SelectOnFocus

Gets or sets the condition under which all control text is selected when the control receives focus.

SelectionLength

Gets or sets the number of characters in the current selection in the C1NumericBox.

SelectionStart

Gets or sets the starting position of the text selected in the C1NumericBox.

ShowButtons

Shows or hides the buttons for Increment or Decrement.

TextAlignment

Gets or sets how the text should be aligned in the C1NumericBox.

ValidationDecoratorStyle

Gets or sets the style that is applied to the inner C1ValidationDecorator.

Value

Gets or sets the numeric value in the C1NumericBox.

Methods

Name Description
ChangeVisualStateButtonsVisibility(bool)

Updates the current visual state of the ButtonsVisibility visual state group to match the object's properties.

ChangeVisualStateCommon(bool)

Updates the current visual state of the Common visual state group to match the object's properties.

Dispose(bool)
OnApplyTemplate()
OnGotFocus(RoutedEventArgs)
OnValueChanged(PropertyChangedEventArgs<double>)

Raises the ValueChanged event.

Select(int, int)

Selects the text specified by start and length.

Events

Name Description
ValueChanged

Fires when the Value property changes.