Beispiel #1
0
        public KeyboardDevice()
        {
            PreviewKeyPressEvent = new TunnelingEvent <KeyEventArgs> ();
            KeyPressEvent        = new BubblingEvent <KeyEventArgs> ();

            GotKeyboardFocusEvent  = new BubblingEvent <EventArgs> ();
            LostKeyboardFocusEvent = new BubblingEvent <EventArgs> ();
        }
        public MouseDevice()
        {
            PreviewButtonPressEvent = new TunnelingEvent <MouseButtonEventArgs> ();
            ButtonPressEvent        = new BubblingEvent <MouseButtonEventArgs> ();

            PreviewButtonReleaseEvent = new TunnelingEvent <MouseButtonEventArgs> ();
            ButtonReleaseEvent        = new BubblingEvent <MouseButtonEventArgs> ();

            PreviewMotionNotifyEvent = new TunnelingEvent <MouseButtonEventArgs> ();
            MotionNotifyEvent        = new BubblingEvent <MouseButtonEventArgs> ();

            MouseEnterEvent = new DirectEvent <EventArgs> ();
            MouseLeaveEvent = new DirectEvent <EventArgs> ();
        }