Skip to content

Latest commit

 

History

History
83 lines (53 loc) · 2.24 KB

File metadata and controls

83 lines (53 loc) · 2.24 KB

FilterTextBox

A textbox meant to input queries used for filtering.

Namespace: Metrolib.Controls
Assembly: Metrolib (in Metrolib.dll)

public class FilterTextBox : System.Windows.Controls.Control

Inheritance Object -> DispatcherObject -> DependencyObject -> Visual -> UIElement -> FrameworkElement -> Control -> FilterTextBox

Unfocused

<Metrolib:FilterTextBox Watermark="Enter filter..." />

Image of FilterTextBox, Unfocused

Focused

<Metrolib:FilterTextBox Watermark="Enter filter..." />

Image of FilterTextBox, Focused

FilterText, Focused

<Metrolib:FilterTextBox FilterText="[0-9]+" Watermark="Enter filter..." />

Image of FilterTextBox, FilterText, Focused

FilterText, Unfocused

<Metrolib:FilterTextBox FilterText="[0-9]+" Watermark="Enter filter..." />

Image of FilterTextBox, FilterText, Unfocused

Invalid FilterText

<Metrolib:FilterTextBox FilterText="[0-9]+" Watermark="Enter filter..." IsValid="False" />

Image of FilterTextBox, Invalid FilterText

Disabled

<Metrolib:FilterTextBox FilterText="[0-9]+" Watermark="Enter filter..." IsEnabled="False" />

Image of FilterTextBox, Disabled

Properties

RemoveFilterTextButton: System.Windows.Controls.Button
The button that appears to remove entered text.

HasFilterText: System.Boolean
Whether or not any FilterText has been entered.

IsValid: System.Boolean
Whether or not the entered FilterText is valid.

Watermark: System.String
The watermark text that shall be displayed when the user hasn't entered any FilterText (yet).

FilterText: System.String
The filter text input by the user.

AcceptsTab: System.Boolean
Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order.

AcceptsReturn: System.Boolean
Gets or sets a value indicating whether pressing ENTER in a multiline TextBox control creates a new line of text in the control or activates the default button for the form.