Show / Hide Table of Contents

Class TextBoxBase

Implements abstract base features for controls with text input

Inheritance
System.Object
DependencyObject
UIElement
Control
TextBoxBase
TextBox
Inherited Members
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.OnGamepadDown(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.Primitives
Assembly: EmptyKeys.UserInterface.dll
Syntax
public abstract class TextBoxBase : Control

Fields

CaretBrushProperty

The caret brush property

Declaration
public static readonly DependencyProperty CaretBrushProperty
Field Value
Type Description
DependencyProperty

ContentElementName

The content element name in control template (ScrollViewer type in default template)

Declaration
public const string ContentElementName = "PART_ScrollViewer"
Field Value
Type Description
System.String

HorizontalScrollBarVisibilityProperty

The horizontal scroll bar visibility property

Declaration
public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty
Field Value
Type Description
DependencyProperty

IsReadOnlyProperty

is read only property

Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
Type Description
DependencyProperty

IsUndoEnabledProperty

The is undo enabled property

Declaration
public static readonly DependencyProperty IsUndoEnabledProperty
Field Value
Type Description
DependencyProperty

SelectionBrushProperty

The selection brush property

Declaration
public static readonly DependencyProperty SelectionBrushProperty
Field Value
Type Description
DependencyProperty

SelectionOpacityProperty

The selection opacity property

Declaration
public static readonly DependencyProperty SelectionOpacityProperty
Field Value
Type Description
DependencyProperty

TextAlignmentProperty

The text alignment dependency property

Declaration
public static readonly DependencyProperty TextAlignmentProperty
Field Value
Type Description
DependencyProperty

UndoLimitProperty

The undo limit property

Declaration
public static readonly DependencyProperty UndoLimitProperty
Field Value
Type Description
DependencyProperty

VerticalScrollBarVisibilityProperty

The vertical scroll bar visibility property

Declaration
public static readonly DependencyProperty VerticalScrollBarVisibilityProperty
Field Value
Type Description
DependencyProperty

Properties

CaretBrush

Gets or sets the caret brush.

Declaration
public Brush CaretBrush { get; set; }
Property Value
Type Description
Brush

The caret brush.

ExtentHeight

Gets the height of the extent.

Declaration
public float ExtentHeight { get; }
Property Value
Type Description
System.Single

The height of the extent.

ExtentWidth

Gets the width of the extent.

Declaration
public float ExtentWidth { get; }
Property Value
Type Description
System.Single

The width of the extent.

HorizontalOffset

Gets the horizontal offset.

Declaration
public float HorizontalOffset { get; }
Property Value
Type Description
System.Single

The horizontal offset.

HorizontalScrollBarVisibility

Gets or sets the horizontal scroll bar visibility.

Declaration
public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
Property Value
Type Description
ScrollBarVisibility

The horizontal scroll bar visibility.

IsReadOnly

Gets or sets a value indicating whether this instance is read only.

Declaration
public bool IsReadOnly { get; set; }
Property Value
Type Description
System.Boolean

true if this instance is read only; otherwise, false.

IsUndoEnabled

Gets or sets a value indicating whether this instance is undo enabled.

Declaration
public bool IsUndoEnabled { get; set; }
Property Value
Type Description
System.Boolean

true if this instance is undo enabled; otherwise, false.

SelectionBrush

Gets or sets the selection brush.

Declaration
public Brush SelectionBrush { get; set; }
Property Value
Type Description
Brush

The selection brush.

SelectionOpacity

Gets or sets the selection opacity.

Declaration
public float SelectionOpacity { get; set; }
Property Value
Type Description
System.Single

The selection opacity.

TextAlignment

Gets or sets the text alignment.

Declaration
public TextAlignment TextAlignment { get; set; }
Property Value
Type Description
TextAlignment

The text alignment.

UndoLimit

Gets or sets the undo limit.

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

The undo limit.

VerticalOffset

Gets the vertical offset.

Declaration
public float VerticalOffset { get; }
Property Value
Type Description
System.Single

The vertical offset.

VerticalScrollBarVisibility

Gets or sets the vertical scroll bar visibility.

Declaration
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
Property Value
Type Description
ScrollBarVisibility

The vertical scroll bar visibility.

ViewportHeight

Gets the height of the viewport.

Declaration
public float ViewportHeight { get; }
Property Value
Type Description
System.Single

The height of the viewport.

ViewportWidth

Gets the width of the viewport.

Declaration
public float ViewportWidth { get; }
Property Value
Type Description
System.Single

The width of the viewport.

Methods

OnApplyTemplate()

Called when [apply template].

Declaration
public override void OnApplyTemplate()
Overrides
UIElement.OnApplyTemplate()

OnDraw(Renderer, Double, Single)

Called when [draw].

Declaration
protected override void OnDraw(Renderer spriterenderer, double elapsedGameTime, float opacity)
Parameters
Type Name Description
EmptyKeys.UserInterface.Renderers.Renderer spriterenderer

The sprite renderer.

System.Double elapsedGameTime

The elapsed game time.

System.Single opacity

The opacity.

Overrides
Control.OnDraw(Renderer, Double, Single)

OnKeyDown(KeyEventArgs)

Raises the KeyDown event.

Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type Name Description
KeyEventArgs e

The KeyEventArgs instance containing the event data.

Overrides
UIElement.OnKeyDown(KeyEventArgs)

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

OnMouseDoubleClick(MouseButtonEventArgs)

Raises the MouseDoubleClick event.

Declaration
protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
Parameters
Type Name Description
MouseButtonEventArgs e

The MouseButtonEventArgs instance containing the event data.

Overrides
Control.OnMouseDoubleClick(MouseButtonEventArgs)

OnMouseDown(MouseButtonEventArgs)

Raises the MouseDown event.

Declaration
protected override void OnMouseDown(MouseButtonEventArgs e)
Parameters
Type Name Description
MouseButtonEventArgs e

The MouseButtonEventArgs instance containing the event data.

Overrides
UIElement.OnMouseDown(MouseButtonEventArgs)

OnMouseMove(Object, MouseEventArgs)

Called when [mouse move].

Declaration
protected override void OnMouseMove(object sender, MouseEventArgs e)
Parameters
Type Name Description
System.Object sender

The sender.

MouseEventArgs e

The MouseEventArgs instance containing the event data.

Overrides
UIElement.OnMouseMove(Object, MouseEventArgs)

OnMouseUp(Object, MouseButtonEventArgs)

Called when [mouse up].

Declaration
protected override void OnMouseUp(object sender, MouseButtonEventArgs e)
Parameters
Type Name Description
System.Object sender

The sender.

MouseButtonEventArgs e

The MouseButtonEventArgs instance containing the event data.

Overrides
UIElement.OnMouseUp(Object, MouseButtonEventArgs)

OnTouchDown(TouchEventArgs)

Raises the TouchDown event.

Declaration
protected override void OnTouchDown(TouchEventArgs e)
Parameters
Type Name Description
TouchEventArgs e

The TouchEventArgs instance containing the event data.

Overrides
UIElement.OnTouchDown(TouchEventArgs)

SelectAll()

Selects all.

Declaration
public void SelectAll()
Back to top Generated by DocFX