[]
The C1NumericBox control is a numeric editor that allows you to display and edit numeric values in many formats.
[StyleTypedProperty(Property = "DecreaseIconStyle", StyleTargetType = typeof(ContentControl))]
[StyleTypedProperty(Property = "IncreaseIconStyle", StyleTargetType = typeof(ContentControl))]
[StyleTypedProperty(Property = "IncreaseButtonStyle", StyleTargetType = typeof(C1RepeatButton))]
[StyleTypedProperty(Property = "DecreaseButtonStyle", StyleTargetType = typeof(C1RepeatButton))]
[StyleTypedProperty(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
[TemplatePart(Name = "Text", Type = typeof(C1TextBox))]
[TemplatePart(Name = "Increase", Type = typeof(C1RepeatButton))]
[TemplatePart(Name = "Decrease", Type = typeof(C1RepeatButton))]
[TemplatePart(Name = "ValidationDecorator", Type = typeof(C1ValidationDecorator))]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "ShowButtons", GroupName = "ButtonsVisibilityStates")]
[TemplateVisualState(Name = "HideButtons", GroupName = "ButtonsVisibilityStates")]
public class C1NumericBox : C1View
| Name | Description |
|---|---|
| C1NumericBox() | Initializes a new instance of the C1NumericBox class. |
| Name | Description |
|---|---|
| AllowNullProperty | Identifies the AllowNull dependency property. |
| CaretBrushProperty | Identifies the CaretBrush 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. |
| 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. |
| Name | Description |
|---|---|
| AllowNull | Gets or sets whether the user can enter nulls values. |
| CaretBrush | Gets or sets the Brush of the blinking cursor of an input control. |
| 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 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. |
| Interval | Gets or sets the interval for the Increase and Decrease buttons. |
| IsFocused | Gets whether the control is focused. |
| 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 Brush used to highlight the border of the control when it has the mouse over. |
| MouseOverBrush | Gets or sets the Brush used to highlight the control when it has the mouse over. |
| Placeholder | Gets or sets the placeholder text. |
| PressedBrush | Gets or sets the 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. |
| 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) | |
| OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) | |
| OnKeyDown(KeyEventArgs) | |
| OnSelectionChanged(RoutedEventArgs) | Raises the SelectionChanged event. |
| OnValueChanged(PropertyChangedEventArgs<double>) | Raises the ValueChanged event. |
| Select(int, int) | Selects the text specified by start and length. |
| Name | Description |
|---|---|
| SelectionChanged | Occurs when the text selection in the C1NumericBox control changes. |
| ValueChanged | Fires when the Value property changes. |