SearchTextBox Class

Control to implement the entry of search criteria in a TextBox.

Definition

Namespace: Common.Wpf.Controls
Assembly: Common.Wpf.Controls (in Common.Wpf.Controls.dll) Version: 2.0.7
C#
public class SearchTextBox : TextBox
Inheritance
Object    DispatcherObject    DependencyObject    Visual    UIElement    FrameworkElement    Control    TextBoxBase    TextBox    SearchTextBox

Remarks

1. Add a namespace attribute to the root element of the markup file it is to be used in:
XAML
xmlns:cc="clr-namespace:Common.Wpf.Controls;assembly=Common.Wpf.Controls"
2. Define the control:
XAML
<cc:SearchTextBox... />

Constructors

SearchTextBoxInitializes a new instance of the SearchTextBox class

Properties

IsEmptyGets or sets the is empty indicator.

Methods

OnInitialized Raises the Initialized event. This method is invoked whenever IsInitialized is set to true internally.
(Overrides FrameworkElementOnInitialized(EventArgs))
OnTextChanged Is called when content in this editing control changes.
(Overrides TextBoxBaseOnTextChanged(TextChangedEventArgs))

Fields

IsEmptyProperty Dependency property for IsEmpty.

See Also