This topic has not yet been rated - Rate this topic

AutoCompleteSearchMode Enumeration

[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Specifies how text in the text box portion of the AutoCompleteBox control is used to filter items specified by the ItemsSource property for display in the drop-down.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Input (in System.Windows.Controls.Input.dll)
public enum AutoCompleteSearchMode
Member name Description
None Specifies that no filter is used. All items are returned.
StartsWith Specifies a culture-sensitive, case-insensitive filter where the returned items start with the specified text. The filter uses the String.StartsWith method and the StringComparer.CurrentCultureIgnoreCase property.
StartsWithCaseSensitive Specifies a culture-sensitive, case-sensitive filter where the returned items start with the specified text. The filter uses the String.StartsWith method and the StringComparer.CurrentCulture property.
StartsWithOrdinal Specifies an ordinal, case-insensitive filter where the returned items start with the specified text. The filter uses the String.StartsWith method and the StringComparer.OrdinalIgnoreCase property.
StartsWithOrdinalCaseSensitive Specifies an ordinal, case-sensitive filter where the returned items start with the specified text. The filter uses the String.StartsWith method and the StringComparer.Ordinal property.
Contains Specifies a culture-sensitive, case-insensitive filter where the returned items contain the specified text.
ContainsCaseSensitive Specifies a culture-sensitive, case-sensitive filter where the returned items contain the specified text.
ContainsOrdinal Specifies an ordinal, case-insensitive filter where the returned items contain the specified text.
ContainsOrdinalCaseSensitive Specifies an ordinal, case-sensitive filter where the returned items contain the specified text.
Equals Specifies a culture-sensitive, case-insensitive filter where the returned items equal the specified text. The filter uses the String.Equals method and the StringComparer.CurrentCultureIgnoreCase property.
EqualsCaseSensitive Specifies a culture-sensitive, case-sensitive filter where the returned items equals the specified text. The filter uses the String.Equals method and the StringComparer.CurrentCulture property.
EqualsOrdinal Specifies an ordinal, case-insensitive filter where the returned items equal the specified text. The filter uses the String.Equals method and the StringComparer.OrdinalIgnoreCase property.
EqualsOrdinalCaseSensitive Specifies an ordinal, case-sensitive filter where the returned items equal the specified text. The filter uses the String.Equals method and the StringComparer.Ordinal property.
Custom Specifies that a custom filter is used. This mode is used when the AutoCompleteBox.TextFilter or AutoCompleteBox.ItemFilter properties are set.

An ordinal filter is a filter that uses the Unicode values of strings when performing comparisons.

Use None when the data source performs its own filtering.

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)