protected override void OnElementAttached() { _inputDataAdapter = new TextFieldInputDataAdapter(AttachedElement); attachedElement.As <FrameworkElement>().Loaded += OnLoaded; attachedElement.GotKeyboardFocus += OnGotKeyboardFocus; attachedElement.LostKeyboardFocus += OnLostKeyboardFocus; attachedElement.PreviewTextInput += OnPreviewTextInput; // attachedElement.TextInput += OnTextInput; }
public static void SetInputDataAdapter( DependencyObject @this, TextFieldInputDataAdapter value) { @this.Set(InputDataAdapterProperty, value); }