Defines a key event argument: gives access to the key that is the subject of the event.
Наследование: KeyboardEventArgs
Пример #1
0
 void OnKeyDestroyed( object sender, KeyEventArgs e )
 {
     Context.Obtain( e.Key.Zone ).Keys.Remove( Context.Obtain( e.Key ) );
     _keys.Remove( Context.Obtain( e.Key ) );
     Context.OnModelDestroy( e.Key );
 }
Пример #2
0
 void OnKeyCreated( object sender, KeyEventArgs e )
 {
     VMKeyEditable kvm = Context.Obtain( e.Key );
     Context.Obtain( e.Key.Zone ).Keys.Add( kvm );
     _keys.Add( kvm );
 }
Пример #3
0
 void OnKeyDestroyed( object sender, KeyEventArgs e )
 {
     Context.SkinDispatcher.Invoke( (Action)( () =>
     {
         Context.Obtain( e.Key.Zone ).Keys.Remove( Context.Obtain( e.Key ) );
         _keys.Remove( Context.Obtain( e.Key ) );
     } ) );
     Context.OnModelDestroy( e.Key );
 }
Пример #4
0
        void OnKeyCreated( object sender, KeyEventArgs e )
        {
            VMKeySimple kvm = Context.Obtain( e.Key );

            Context.SkinDispatcher.Invoke( (Action)( () =>
            {
                Context.Obtain( e.Key.Zone ).Keys.Add( kvm );
                _keys.Add( kvm );
            } ) );
        }
Пример #5
0
        void OnKeyDestroyed( object sender, KeyEventArgs e )
        {
            Debug.Assert( Dispatcher.CurrentDispatcher == Context.NoFocusManager.ExternalDispatcher, "This method should only be called by the ExternalThread." );

            Context.NoFocusManager.NoFocusDispatcher.Invoke( (Action)(() =>
            {
                Context.Obtain( e.Key.Zone ).Keys.Remove( Context.Obtain( e.Key ) );
                _keys.Remove( Context.Obtain( e.Key ) );
            }) );
            Context.OnModelDestroy( e.Key );
        }
Пример #6
0
        void OnKeyCreated( object sender, KeyEventArgs e )
        {
            Debug.Assert( Dispatcher.CurrentDispatcher == Context.NoFocusManager.ExternalDispatcher, "This method should only be called by the ExternalThread." );

            VMKeySimple kvm = Context.Obtain( e.Key );
            VMZoneSimple zvm = Context.Obtain( e.Key.Zone );

            Context.NoFocusManager.NoFocusDispatcher.BeginInvoke( (Action)(() =>
            {
                zvm.Keys.Add( kvm );
                _keys.Add( kvm );
            }) );
        }