Volume Control
Application-specific hotkeys for Windows
VolumeControl.WPF.Behaviors.TextBoxAutocompleteBehavior Class Reference

Behavior that implements autocomplete suggestions for TextBox controls. More...

Inheritance diagram for VolumeControl.WPF.Behaviors.TextBoxAutocompleteBehavior:
Collaboration diagram for VolumeControl.WPF.Behaviors.TextBoxAutocompleteBehavior:

Static Public Attributes

static readonly DependencyProperty ItemsSourceProperty
 The DependencyProperty for ItemsSource. More...
 
static readonly DependencyProperty StringComparisonProperty
 The DependencyProperty for StringComparison. More...
 
static readonly DependencyProperty RequirePrefixProperty
 The DependencyProperty for RequirePrefix. More...
 
static readonly DependencyProperty CancelOnLostFocusProperty
 The DependencyProperty for CancelOnLostFocus. More...
 

Protected Member Functions

override void OnAttached ()
 
override void OnDetaching ()
 

Properties

IEnumerable< string > ItemsSource [get, set]
 Gets or sets the source for auto complete suggestions. More...
 
StringComparison StringComparison [get, set]
 Gets or sets the string comparison type to use when matching auto complete suggestions to the existing text. More...
 
string RequirePrefix [get, set]
 Gets or sets the string prefix that must appear at the start of the text for autocomplete suggestions to appear. More...
 
bool CancelOnLostFocus [get, set]
 Gets or sets whether the current autocomplete suggestion is deleted when keyboard focus is lost. Otherwise, the current suggestion is committed. More...
 

Detailed Description

Behavior that implements autocomplete suggestions for TextBox controls.

Member Data Documentation

◆ CancelOnLostFocusProperty

readonly DependencyProperty VolumeControl.WPF.Behaviors.TextBoxAutocompleteBehavior.CancelOnLostFocusProperty
static
Initial value:
= DependencyProperty.Register(
typeof(bool),
typeof(TextBoxAutocompleteBehavior),
new PropertyMetadata(false))
bool CancelOnLostFocus
Gets or sets whether the current autocomplete suggestion is deleted when keyboard focus is lost....
Definition: TextBoxAutocompleteBehavior.cs:105

The DependencyProperty for CancelOnLostFocus.

◆ ItemsSourceProperty

readonly DependencyProperty VolumeControl.WPF.Behaviors.TextBoxAutocompleteBehavior.ItemsSourceProperty
static
Initial value:
= DependencyProperty.Register(
nameof(ItemsSource),
typeof(IEnumerable<string>),
typeof(TextBoxAutocompleteBehavior),
new PropertyMetadata(null, OnItemsSourcePropertyChanged))
IEnumerable< string > ItemsSource
Gets or sets the source for auto complete suggestions.
Definition: TextBoxAutocompleteBehavior.cs:29

The DependencyProperty for ItemsSource.

◆ RequirePrefixProperty

readonly DependencyProperty VolumeControl.WPF.Behaviors.TextBoxAutocompleteBehavior.RequirePrefixProperty
static
Initial value:
= DependencyProperty.Register(
nameof(RequirePrefix),
typeof(string),
typeof(TextBoxAutocompleteBehavior),
new PropertyMetadata(string.Empty))
string RequirePrefix
Gets or sets the string prefix that must appear at the start of the text for autocomplete suggestions...
Definition: TextBoxAutocompleteBehavior.cs:85

The DependencyProperty for RequirePrefix.

◆ StringComparisonProperty

readonly DependencyProperty VolumeControl.WPF.Behaviors.TextBoxAutocompleteBehavior.StringComparisonProperty
static
Initial value:
= DependencyProperty.Register(
typeof(TextBoxAutocompleteBehavior),
new PropertyMetadata(StringComparison.Ordinal))
StringComparison StringComparison
Gets or sets the string comparison type to use when matching auto complete suggestions to the existin...
Definition: TextBoxAutocompleteBehavior.cs:66

The DependencyProperty for StringComparison.

Property Documentation

◆ CancelOnLostFocus

bool VolumeControl.WPF.Behaviors.TextBoxAutocompleteBehavior.CancelOnLostFocus
getset

Gets or sets whether the current autocomplete suggestion is deleted when keyboard focus is lost. Otherwise, the current suggestion is committed.

◆ ItemsSource

IEnumerable<string> VolumeControl.WPF.Behaviors.TextBoxAutocompleteBehavior.ItemsSource
getset

Gets or sets the source for auto complete suggestions.

◆ RequirePrefix

string VolumeControl.WPF.Behaviors.TextBoxAutocompleteBehavior.RequirePrefix
getset

Gets or sets the string prefix that must appear at the start of the text for autocomplete suggestions to appear.

◆ StringComparison

StringComparison VolumeControl.WPF.Behaviors.TextBoxAutocompleteBehavior.StringComparison
getset

Gets or sets the string comparison type to use when matching auto complete suggestions to the existing text.


The documentation for this class was generated from the following file: