C# Class AutoFilteredComboBox, code

Inheritance: ComboBox
Show file Open project: shendongnian/code

Public Properties

Property Type Description
DropDownOnFocusProperty DependencyProperty,
IsCaseSensitiveProperty DependencyProperty,

Private Properties

Property Type Description
AutoFilteredComboBox_KeyUp void
FilterPredicate bool
OnTextChanged void
RefreshFilter void

Public Methods

Method Description
AutoFilteredComboBox ( )

Creates a new instance of AutoFilteredComboBox.

OnApplyTemplate ( ) : void

Protected Methods

Method Description
OnGotFocus ( RoutedEventArgs e ) : void

Invoked whenever an unhandled UIElement.GotFocus event reaches this element in its route.

OnItemsSourceChanged ( IEnumerable, oldValue, IEnumerable, newValue ) : void

Called when the source of an item in a selector changes.

OnSelectionChanged ( SelectionChangedEventArgs, e ) : void

Private Methods

Method Description
AutoFilteredComboBox_KeyUp ( object sender, KeyEventArgs, e ) : void
FilterPredicate ( object value ) : bool
OnTextChanged ( object sender, TextChangedEventArgs, e ) : void
RefreshFilter ( ) : void

Method Details

AutoFilteredComboBox() public method

Creates a new instance of AutoFilteredComboBox.

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnGotFocus() protected method

Invoked whenever an unhandled UIElement.GotFocus event reaches this element in its route.
protected OnGotFocus ( RoutedEventArgs e ) : void
e RoutedEventArgs The that contains the event data.
return void

OnItemsSourceChanged() protected method

Called when the source of an item in a selector changes.
protected OnItemsSourceChanged ( IEnumerable, oldValue, IEnumerable, newValue ) : void
oldValue IEnumerable, Old value of the source.
newValue IEnumerable, New value of the source.
return void

OnSelectionChanged() protected method

protected OnSelectionChanged ( SelectionChangedEventArgs, e ) : void
e SelectionChangedEventArgs,
return void

Property Details

DropDownOnFocusProperty public static property

The DependencyProperty object of the DropDownOnFocus dependency property.
public static DependencyProperty, DropDownOnFocusProperty
return DependencyProperty,

IsCaseSensitiveProperty public static property

The DependencyProperty object of the IsCaseSensitive dependency property.
public static DependencyProperty, IsCaseSensitiveProperty
return DependencyProperty,