Пример #1
0
        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;
        }
Пример #2
0
 public static void SetInputDataAdapter(
     DependencyObject @this,
     TextFieldInputDataAdapter value)
 {
     @this.Set(InputDataAdapterProperty, value);
 }