Class NumericTextBox
Implements Numeric text box control
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class NumericTextBox : TextBox
Constructors
NumericTextBox()
Initializes a new instance of the NumericTextBox class.
Declaration
public NumericTextBox()
Fields
IncrementProperty
The increment property
Declaration
public static readonly DependencyProperty IncrementProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MaximumProperty
The maximum property
Declaration
public static readonly DependencyProperty MaximumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MinimumProperty
The minimum property
Declaration
public static readonly DependencyProperty MinimumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ValueFormatProperty
The value format property
Declaration
public static readonly DependencyProperty ValueFormatProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ValueProperty
The value property
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ValueStyleProperty
The value style property
Declaration
public static readonly DependencyProperty ValueStyleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
Increment
Gets or sets the increment.
Declaration
public float Increment { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The increment. |
Maximum
Gets or sets the maximum.
Declaration
public float Maximum { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The maximum. |
Minimum
Gets or sets the minimum.
Declaration
public float Minimum { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The minimum. |
Value
Gets or sets the value.
Declaration
public float Value { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The value. |
ValueFormat
Gets or sets the value format.
Declaration
public string ValueFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | The value format. |
ValueStyle
Gets or sets the value style.
Declaration
public NumberStyles ValueStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.NumberStyles | The value style. |
Methods
OnApplyTemplate()
Called when [apply template].
Declaration
public override void OnApplyTemplate()
Overrides
OnLostFocus(Object, RoutedEventArgs)
Called when [lost focus].
Declaration
protected override void OnLostFocus(object sender, RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender. |
RoutedEventArgs | e | The RoutedEventArgs instance containing the event data. |
Overrides
OnMaximumChanged(Single, Single)
Called when [maximum changed].
Declaration
protected virtual void OnMaximumChanged(float oldMaximum, float newMaximum)
Parameters
Type | Name | Description |
---|---|---|
System.Single | oldMaximum | The old maximum. |
System.Single | newMaximum | The new maximum. |
OnMinimumChanged(Single, Single)
Called when [minimum changed].
Declaration
protected virtual void OnMinimumChanged(float oldMinimum, float newMinimum)
Parameters
Type | Name | Description |
---|---|---|
System.Single | oldMinimum | The old minimum. |
System.Single | newMinimum | The new minimum. |
OnPreviewGamepadMove(Object, GamepadMoveEventArgs)
Called when [preview game pad move].
Declaration
protected override void OnPreviewGamepadMove(object sender, GamepadMoveEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender. |
GamepadMoveEventArgs | e | The GamepadMoveEventArgs instance containing the event data. |
Overrides
OnPreviewMouseWheel(Object, MouseWheelEventArgs)
Called when [preview mouse wheel].
Declaration
protected override void OnPreviewMouseWheel(object sender, MouseWheelEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender. |
MouseWheelEventArgs | e | The MouseWheelEventArgs instance containing the event data. |
Overrides
OnTextPropertyChanged(String, String)
Called when [text property changed].
Declaration
protected override void OnTextPropertyChanged(string oldText, string newText)
Parameters
Type | Name | Description |
---|---|---|
System.String | oldText | The old text. |
System.String | newText | The new text. |