Show / Hide Table of Contents

Class NumericTextBox

Implements Numeric text box control

Inheritance
System.Object
DependencyObject
UIElement
Control
TextBoxBase
TextBox
NumericTextBox
Inherited Members
TextBox.TextProperty
TextBox.Text
TextBox.SelectedText
TextBox.MaxLengthProperty
TextBox.MaxLength
TextBox.Select(Int32, Int32)
TextBox.OnGamepadDown(GamepadButtonEventArgs)
TextBoxBase.ContentElementName
TextBoxBase.IsReadOnlyProperty
TextBoxBase.IsReadOnly
TextBoxBase.HorizontalScrollBarVisibilityProperty
TextBoxBase.HorizontalScrollBarVisibility
TextBoxBase.VerticalScrollBarVisibilityProperty
TextBoxBase.VerticalScrollBarVisibility
TextBoxBase.CaretBrushProperty
TextBoxBase.CaretBrush
TextBoxBase.TextAlignmentProperty
TextBoxBase.TextAlignment
TextBoxBase.SelectionBrushProperty
TextBoxBase.SelectionBrush
TextBoxBase.SelectionOpacityProperty
TextBoxBase.SelectionOpacity
TextBoxBase.IsUndoEnabledProperty
TextBoxBase.IsUndoEnabled
TextBoxBase.UndoLimitProperty
TextBoxBase.UndoLimit
TextBoxBase.ExtentWidth
TextBoxBase.ExtentHeight
TextBoxBase.ViewportWidth
TextBoxBase.ViewportHeight
TextBoxBase.HorizontalOffset
TextBoxBase.VerticalOffset
TextBoxBase.SelectAll()
TextBoxBase.OnKeyDown(KeyEventArgs)
TextBoxBase.OnMouseDown(MouseButtonEventArgs)
TextBoxBase.OnMouseDoubleClick(MouseButtonEventArgs)
TextBoxBase.OnMouseMove(Object, MouseEventArgs)
TextBoxBase.OnMouseUp(Object, MouseButtonEventArgs)
TextBoxBase.OnTouchDown(TouchEventArgs)
TextBoxBase.OnDraw(Renderer, Double, Single)
Control.BackgroundProperty
Control.Background
Control.BorderBrushProperty
Control.BorderBrush
Control.BorderThicknessProperty
Control.BorderThickness
Control.ForegroundProperty
Control.Foreground
Control.FontProperty
Control.Font
Control.FontFamilyProperty
Control.FontFamily
Control.FontSizeProperty
Control.FontSize
Control.FontStyleProperty
Control.FontStyle
Control.PaddingProperty
Control.Padding
Control.TabIndexProperty
Control.TabIndex
Control.IsTabStopProperty
Control.IsTabStop
Control.TemplateProperty
Control.Template
Control.HorizontalContentAlignmentProperty
Control.HorizontalContentAlignment
Control.VerticalContentAlignmentProperty
Control.VerticalContentAlignment
Control.PreviewMouseDoubleClickEvent
Control.PreviewMouseDoubleClick
Control.OnPreviewMouseDoubleClick(MouseButtonEventArgs)
Control.MouseDoubleClickEvent
Control.MouseDoubleClick
Control.MeasureOverride(Size)
Control.ArrangeOverride(Size)
Control.OnPropertyChanged(DependencyProperty)
Control.InvalidateIsEnabledOnChildren()
UIElement.visualOffset
UIElement.unclippedDesiredSize
UIElement.desiredSize
UIElement.needsClipBounds
UIElement.DesiredSize
UIElement.RenderSize
UIElement.DeviceRenderSize
UIElement.VisualOffset
UIElement.VisualPosition
UIElement.RenderPosition
UIElement.Parent
UIElement.ActualHeight
UIElement.ActualWidth
UIElement.IsLoaded
UIElement.TemplatedParent
UIElement.NameProperty
UIElement.Name
UIElement.HorizontalAlignmentProperty
UIElement.HorizontalAlignment
UIElement.VerticalAlignmentProperty
UIElement.VerticalAlignment
UIElement.VisibilityProperty
UIElement.Visibility
UIElement.MarginProperty
UIElement.Margin
UIElement.HeightProperty
UIElement.Height
UIElement.MaxHeightProperty
UIElement.MaxHeight
UIElement.MinHeightProperty
UIElement.MinHeight
UIElement.WidthProperty
UIElement.Width
UIElement.MaxWidthProperty
UIElement.MaxWidth
UIElement.MinWidthProperty
UIElement.MinWidth
UIElement.TagProperty
UIElement.Tag
UIElement.IsEnabledProperty
UIElement.IsEnabledCoerceValue
UIElement.IsEnabled
UIElement.IsMouseOverProperty
UIElement.IsMouseOver
UIElement.IsMouseCapturedProperty
UIElement.IsMouseCaptured
UIElement.IsTouchCapturedProperty
UIElement.IsTouchCaptured
UIElement.IsKeyboardFocusedProperty
UIElement.IsKeyboardFocused
UIElement.StyleProperty
UIElement.Style
UIElement.DataContextProperty
UIElement.DataContext
UIElement.IsFocusedProperty
UIElement.IsFocused
UIElement.FocusableProperty
UIElement.Focusable
UIElement.IsHitTestVisibleProperty
UIElement.IsHitTestVisible
UIElement.SnapsToDevicePixelsProperty
UIElement.SnapsToDevicePixels
UIElement.UseLayoutRoundingProperty
UIElement.UseLayoutRounding
UIElement.OpacityProperty
UIElement.Opacity
UIElement.IsMeasureValid
UIElement.IsArrangeValid
UIElement.Resources
UIElement.InputBindings
UIElement.ToolTipProperty
UIElement.ToolTip
UIElement.Triggers
UIElement.CursorTypeProperty
UIElement.CursorType
UIElement.EffectProperty
UIElement.Effect
UIElement.DataContextChanged
UIElement.IsEnabledChanged
UIElement.IsMouseCapturedChanged
UIElement.VisibleEvent
UIElement.Visible
UIElement.HiddenEvent
UIElement.Hidden
UIElement.CollapsedEvent
UIElement.Collapsed
UIElement.LoadedEvent
UIElement.Loaded
UIElement.UnloadedEvent
UIElement.Unloaded
UIElement.MouseDownEvent
UIElement.MouseDown
UIElement.PreviewMouseDownEvent
UIElement.PreviewMouseDown
UIElement.MouseUpEvent
UIElement.MouseUp
UIElement.PreviewMouseUpEvent
UIElement.PreviewMouseUp
UIElement.PreviewMouseWheelEvent
UIElement.PreviewMouseWheel
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.PreviewMouseMoveEvent
UIElement.PreviewMouseMove
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.PreviewKeyDownEvent
UIElement.PreviewKeyDown
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.PreviewKeyUpEvent
UIElement.PreviewKeyUp
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.GamepadDownEvent
UIElement.GamepadDown
UIElement.PreviewGamepadDownEvent
UIElement.PreviewGamepadDown
UIElement.GamepadUpEvent
UIElement.GamepadUp
UIElement.PreviewGamepadUpEvent
UIElement.PreviewGamepadUp
UIElement.PreviewGamepadMoveEvent
UIElement.PreviewGamepadMove
UIElement.GamepadMoveEvent
UIElement.GamepadMove
UIElement.PreviewGamepadTriggerEvent
UIElement.PreviewGamepadTrigger
UIElement.GamepadTriggerEvent
UIElement.GamepadTrigger
UIElement.PreviewTouchDownEvent
UIElement.PreviewTouchDown
UIElement.TouchDownEvent
UIElement.TouchDown
UIElement.PreviewTouchUpEvent
UIElement.PreviewTouchUp
UIElement.TouchUpEvent
UIElement.TouchUp
UIElement.PreviewTouchMoveEvent
UIElement.PreviewTouchMove
UIElement.TouchMoveEvent
UIElement.TouchMove
UIElement.PreviewTouchGestureEvent
UIElement.PreviewTouchGesture
UIElement.TouchGestureEvent
UIElement.TouchGesture
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.SizeChangedEvent
UIElement.SizeChanged
UIElement.LayoutUpdated
UIElement.RequestBringIntoViewEvent
UIElement.RequestBringIntoView
UIElement.DpiScaleX
UIElement.DpiScaleY
UIElement.OnGotFocus(Object, RoutedEventArgs)
UIElement.OnPreviewMouseUp(Object, MouseButtonEventArgs)
UIElement.OnPreviewMouseDown(Object, MouseButtonEventArgs)
UIElement.OnGamepadTrigger(Object, GamepadTriggerEventArgs)
UIElement.OnPreviewGamepadTrigger(Object, GamepadTriggerEventArgs)
UIElement.OnGamepadMove(Object, GamepadMoveEventArgs)
UIElement.OnGamepadUp(Object, GamepadButtonEventArgs)
UIElement.OnPreviewGamepadUp(Object, GamepadButtonEventArgs)
UIElement.OnPreviewGamepadDown(Object, GamepadButtonEventArgs)
UIElement.OnKeyUp(Object, KeyEventArgs)
UIElement.OnPreviewKeyUp(Object, KeyEventArgs)
UIElement.OnPreviewKeyDown(Object, KeyEventArgs)
UIElement.OnPreviewMouseMove(Object, MouseEventArgs)
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.OnTouchUp(TouchEventArgs)
UIElement.OnPreviewTouchUp(TouchEventArgs)
UIElement.OnPreviewTouchDown(TouchEventArgs)
UIElement.OnTouchMove(TouchEventArgs)
UIElement.OnPreviewTouchMove(TouchEventArgs)
UIElement.OnTouchGesture(TouchGestureEventArgs)
UIElement.OnPreviewTouchGesture(TouchGestureEventArgs)
UIElement.ApplyTemplate()
UIElement.OnIsEnabledChanged(DependencyPropertyChangedEventArgs)
UIElement.OnOpacityChanged(DependencyPropertyChangedEventArgs)
UIElement.Contains(PointF, Size)
UIElement.Draw(Renderer, Double, Single)
UIElement.Measure(Size)
UIElement.InvalidateMeasure()
UIElement.Arrange(Rect)
UIElement.InvalidateArrange()
UIElement.FindResource(Object)
UIElement.AddHandler(RoutedEvent, Delegate)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.RaiseEvent(RoutedEventArgs)
UIElement.AddToEventRoute(EventRoute, RoutedEventArgs)
UIElement.CaptureMouse()
UIElement.ReleaseMouseCapture()
UIElement.OnIsMouseCapturedChanged(DependencyPropertyChangedEventArgs)
UIElement.CaptureTouch()
UIElement.ReleaseTouchCapture()
UIElement.Focus()
UIElement.BringIntoView()
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
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
TextBoxBase.OnApplyTemplate()

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
TextBoxBase.OnLostFocus(Object, RoutedEventArgs)

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
UIElement.OnPreviewGamepadMove(Object, GamepadMoveEventArgs)

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
UIElement.OnPreviewMouseWheel(Object, MouseWheelEventArgs)

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.

Overrides
TextBox.OnTextPropertyChanged(String, String)
Back to top Generated by DocFX