Skip to content

AutoCompleteBehavior

JaykeBird edited this page Feb 21, 2023 · 6 revisions

Back to home | Back to Reference | View raw text

AutoCompleteBehavior class

Description

Adds basic auto-complete behavior to text boxes via attached properties. Created by Nimgoble.

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SolidShineUi
  SolidShineUi.AutoCompleteBehavior[[AutoCompleteBehavior]]
  end
Loading

Members

Methods

Public Static methods

Returns Name
string GetAutoCompleteIndicator(DependencyObject obj)
Get the string that, when typed, activates the auto-completion suggestions, such as "@". If this is null or empty,
auto-complete suggestions will be supplied once any text is typed into the TextBox.
IEnumerable<string> GetAutoCompleteItemsSource(DependencyObject obj)
Return the string list/enumerable associated with a specified object; this list is used as the source for the auto complete list.
StringComparison GetAutoCompleteStringComparison(DependencyObject obj)
Get the string comparison method to utilize when supplying auto-completion suggestions.
void SetAutoCompleteIndicator(DependencyObject obj, string value)
Set the string that, when typed, activates the auto-completion suggestions, such as "@". If this is null or empty,
auto-complete suggestions will be supplied once any text is typed into the TextBox.
void SetAutoCompleteItemsSource(DependencyObject obj, IEnumerable<string> value)
void SetAutoCompleteStringComparison(DependencyObject obj, StringComparison value)
Set the string comparison method to utilize when supplying auto-completion suggestions.

Details

Summary

Adds basic auto-complete behavior to text boxes via attached properties. Created by Nimgoble.

Methods

GetAutoCompleteItemsSource

public static IEnumerable<string> GetAutoCompleteItemsSource(DependencyObject obj)
Arguments
Type Name Description
DependencyObject obj
Summary

Return the string list/enumerable associated with a specified object; this list is used as the source for the auto complete list.

SetAutoCompleteItemsSource

public static void SetAutoCompleteItemsSource(DependencyObject obj, IEnumerable<string> value)
Arguments
Type Name Description
DependencyObject obj
IEnumerable<string> value

GetAutoCompleteStringComparison

public static StringComparison GetAutoCompleteStringComparison(DependencyObject obj)
Arguments
Type Name Description
DependencyObject obj
Summary

Get the string comparison method to utilize when supplying auto-completion suggestions.

SetAutoCompleteStringComparison

public static void SetAutoCompleteStringComparison(DependencyObject obj, StringComparison value)
Arguments
Type Name Description
DependencyObject obj
StringComparison value
Summary

Set the string comparison method to utilize when supplying auto-completion suggestions.

GetAutoCompleteIndicator

public static string GetAutoCompleteIndicator(DependencyObject obj)
Arguments
Type Name Description
DependencyObject obj
Summary

Get the string that, when typed, activates the auto-completion suggestions, such as "@". If this is null or empty, auto-complete suggestions will be supplied once any text is typed into the TextBox.

SetAutoCompleteIndicator

public static void SetAutoCompleteIndicator(DependencyObject obj, string value)
Arguments
Type Name Description
DependencyObject obj
string value
Summary

Set the string that, when typed, activates the auto-completion suggestions, such as "@". If this is null or empty, auto-complete suggestions will be supplied once any text is typed into the TextBox.

Generated with ModularDoc

Clone this wiki locally