TextBox class¶
Defined in
Namespace: CrissCross.WPF.UI.Controls
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.Controls.TextBox
Modifiers: public
Summary¶
Extended TextBox with additional parameters like PlaceholderText.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Class hierarchy
classDiagram
class TextBox
class TextBox
TextBox <|-- TextBox
Inherits from: TextBox
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [TextBox](# class. |
Properties¶
| Name | Summary |
|---|---|
| Icon | Gets or sets displayed [IconElement](# |
| IconPlacement | Gets or sets which side the icon should be placed on. |
| PlaceholderText | Gets or sets placeholder text. |
| PlaceholderEnabled | Gets or sets a value indicating whether to enable the placeholder text. |
| CurrentPlaceholderEnabled | Gets or sets a value indicating whether to display the placeholder text. |
| ClearButtonEnabled | Gets or sets a value indicating whether to enable the clear button. |
| ShowClearButton | Gets or sets a value indicating whether to show the clear button when [TextBox](# is focused. |
| IsTextSelectionEnabled | Gets or sets a value indicating whether text selection is enabled. |
| TemplateButtonCommand | Gets the command triggered when clicking the button. |
| OnTemplateButtonClickCommand | Triggered by clicking a button in the control template. |
Fields¶
| Name | Summary |
|---|---|
| static IconProperty | Identifies the [Icon](# dependency property. |
| static IconPlacementProperty | Identifies the [IconPlacement](# dependency property. |
| static PlaceholderTextProperty | Identifies the [PlaceholderText](# dependency property. |
| static PlaceholderEnabledProperty | Identifies the [PlaceholderEnabled](# dependency property. |
| static CurrentPlaceholderEnabledProperty | Identifies the [CurrentPlaceholderEnabled](# dependency property. |
| static ClearButtonEnabledProperty | Identifies the [ClearButtonEnabled](# dependency property. |
| static ShowClearButtonProperty | Identifies the [ShowClearButton](# dependency property. |
| static IsTextSelectionEnabledProperty | Identifies the [IsTextSelectionEnabled](# dependency property. |
| static TemplateButtonCommandProperty | Identifies the [TemplateButtonCommand](# dependency property. |
Methods¶
| Name | Summary |
|---|---|
| OnTextChanged | |
| SetPlaceholderTextVisibility | Sets the placeholder text visibility. |
| OnGotFocus | |
| OnLostFocus | |
| RevealClearButton | Reveals the clear button by [ShowClearButton](# property. |
| HideClearButton | Hides the clear button by [ShowClearButton](# property. |
| OnClearButtonClick | Triggered when the user clicks the clear text button. |
| OnTemplateButtonClick | Triggered by clicking a button in the control template. |
| OnPlaceholderEnabledChanged | Called when [placeholder enabled changed]. |