Represents a TextBox
that can be embedded into other controls.
- Inheritance:
-
object
Visual
UIElement
Framework
Element Control TextBox TextBase Box object
Constructors
EmbeddedTextBox()
Initializes an instance of the EmbeddedTextBox
class.
Properties
CanSelectAllOnFocus
Gets or sets whether the textbox can select all text on focus.
Property Value
- bool:
true
if the textbox can select all text on focus; otherwise,false
. The default value isfalse
.
Methods
OnApplyTemplate()
Invoked whenever application code or internal processes call ApplyTemplate
.
OnContextMenuOpening(ContextMenuEventArgs)
Called whenever an unhandled Context
Parameter | Type | Description |
---|---|---|
e | Context |
Arguments of the event. |
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)
Invoked whenever an unhandled System.Windows.Input.Keyboard.GotKeyboardFocus attached routed event reaches an element derived from this class in its route. Implement this method to add class handling for this event.
Parameter | Type | Description |
---|---|---|
e | Keyboard |
Provides data about the event. |
OnPreviewMouseDown(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseDown attached routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Parameter | Type | Description |
---|---|---|
e | Mouse |
The Mouse |
Fields
CanSelectAllOnFocusProperty
Identifies the Can