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; }