TextBox
- Assembly:
Fluence.Wpf - Namespace:
Fluence.Wpf.Controls
public class TextBox : System.Windows.Controls.TextBox
A Fluent Design styled text box with placeholder, clear button, and icon support.
Base type: System.Windows.Controls.TextBox (including inherited WPF and .NET members)
Constructors
TextBox
public TextBox()
Initializes a new instance of the TextBox class and wires text-changed handling.
Properties
ClearButtonEnabled
public bool ClearButtonEnabled { get; set; }
Gets or sets whether the clear button is shown when the text box has content and focus.
CornerRadius
public CornerRadius CornerRadius { get; set; }
Gets or sets the corner radius of the text box.
HelperText
public string HelperText { get; set; }
Gets or sets the helper text displayed below the text box.
Icon
public object Icon { get; set; }
Gets or sets the icon displayed in the text box.
IconPlacement
public ElementPlacement IconPlacement { get; set; }
Gets or sets the placement of the icon relative to the text.
PlaceholderEnabled
public bool PlaceholderEnabled { get; set; }
Gets or sets whether the placeholder text is enabled.
PlaceholderText
public string PlaceholderText { get; set; }
Gets or sets the placeholder text displayed when the text box is empty.
ValidationMessage
public string ValidationMessage { get; set; }
Gets or sets the validation message displayed when a validation state is active.
ValidationState
public ValidationState ValidationState { get; set; }
Gets or sets the current validation state of the text box.
Methods
OnApplyTemplate
public override void OnApplyTemplate()
Documentation inherited from the TextBox API.
OnPropertyChanged
protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
Documentation inherited from the TextBox API.
Dependency property identifiers
Use these identifiers with WPF property APIs. The matching CLR properties appear above when the control exposes them.
ClearButtonEnabledProperty
public static readonly DependencyProperty ClearButtonEnabledProperty
Identifies the ClearButtonEnabled dependency property.
CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
Identifies the CornerRadius dependency property.
HelperTextProperty
public static readonly DependencyProperty HelperTextProperty
Identifies the HelperText dependency property.
IconPlacementProperty
public static readonly DependencyProperty IconPlacementProperty
Identifies the IconPlacement dependency property.
IconProperty
public static readonly DependencyProperty IconProperty
Identifies the Icon dependency property.
PlaceholderEnabledProperty
public static readonly DependencyProperty PlaceholderEnabledProperty
Identifies the PlaceholderEnabled dependency property.
PlaceholderTextProperty
public static readonly DependencyProperty PlaceholderTextProperty
Identifies the PlaceholderText dependency property.
ValidationMessageProperty
public static readonly DependencyProperty ValidationMessageProperty
Identifies the ValidationMessage dependency property.
ValidationStateProperty
public static readonly DependencyProperty ValidationStateProperty
Identifies the ValidationState dependency property.