System.Windows.Controls.AutoCompleteBox.OnTextBoxSelectionChanged C# (CSharp) Méthode

OnTextBoxSelectionChanged() private méthode

When selection changes, save the location of the selection start.
private OnTextBoxSelectionChanged ( object sender, RoutedEventArgs e ) : void
sender object The source object.
e RoutedEventArgs The event data.
Résultat void
        private void OnTextBoxSelectionChanged(object sender, RoutedEventArgs e)
        {
            // If ignoring updates. This happens after text is updated, and 
            // before the PopulateComplete method is called. Required for the 
            // IsTextCompletionEnabled feature.
            if(_ignoreTextSelectionChange)
            {
                return;
            }

            _textSelectionStart = _text.SelectionStart;
        }