Show / Hide Table of Contents

Class TextBox

Implements control so user can draw or edit text

Inheritance
System.Object
DependencyObject
UIElement
Control
TextBoxBase
TextBox
NumericTextBox
PasswordBox
Inherited Members
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.OnApplyTemplate()
TextBoxBase.SelectAll()
TextBoxBase.OnKeyDown(KeyEventArgs)
TextBoxBase.OnMouseDown(MouseButtonEventArgs)
TextBoxBase.OnMouseDoubleClick(MouseButtonEventArgs)
TextBoxBase.OnMouseMove(Object, MouseEventArgs)
TextBoxBase.OnMouseUp(Object, MouseButtonEventArgs)
TextBoxBase.OnTouchDown(TouchEventArgs)
TextBoxBase.OnLostFocus(Object, RoutedEventArgs)
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.OnPreviewGamepadMove(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.OnPreviewMouseWheel(Object, 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 TextBox : TextBoxBase

Constructors

TextBox()

Initializes a new instance of the TextBox class.

Declaration
public TextBox()

Fields

MaxLengthProperty

The maximum length property

Declaration
public static readonly DependencyProperty MaxLengthProperty
Field Value
Type Description
DependencyProperty

TextProperty

The text property

Declaration
public static readonly DependencyProperty TextProperty
Field Value
Type Description
DependencyProperty

Properties

MaxLength

Gets or sets the maximum length.

Declaration
public int MaxLength { get; set; }
Property Value
Type Description
System.Int32

The maximum length.

SelectedText

Gets the selected text.

Declaration
public string SelectedText { get; }
Property Value
Type Description
System.String

The selected text.

Text

Gets or sets the text.

Declaration
public string Text { get; set; }
Property Value
Type Description
System.String

The text.

Methods

OnGamepadDown(GamepadButtonEventArgs)

Raises the GamepadDown event.

Declaration
protected override void OnGamepadDown(GamepadButtonEventArgs e)
Parameters
Type Name Description
GamepadButtonEventArgs e

The GamepadButtonEventArgs instance containing the event data.

Overrides
UIElement.OnGamepadDown(GamepadButtonEventArgs)

OnTextPropertyChanged(String, String)

Called when [text property changed].

Declaration
protected virtual void OnTextPropertyChanged(string oldText, string newText)
Parameters
Type Name Description
System.String oldText

The old text.

System.String newText

The new text.

Select(Int32, Int32)

Selects a range of the text

Declaration
public void Select(int start, int length)
Parameters
Type Name Description
System.Int32 start

The start.

System.Int32 length

The length.

See Also

TextBoxBase
Back to top Generated by DocFX