Defines a keyboard layout event: gives access to the IContext, the keyboard and layout that is the subject of the event.
Inheritance: KeyboardEventArgs
Esempio n. 1
0
        void OnLayoutSizeChanged( object sender, LayoutEventArgs e )
        {
            if( e.Layout == _keyboard.CurrentLayout )
            {
                SafeUpdateH();
                OnPropertyChanged( "H" );

                SafeUpdateW();
                OnPropertyChanged( "W" );
            }
        }
Esempio n. 2
0
 void OnLayoutSizeChanged( object sender, LayoutEventArgs e )
 {
     if( e.Layout == _keyboard.CurrentLayout )
     {
         OnPropertyChanged( "W" );
         OnPropertyChanged( "H" );
         OnTriggerLayoutSizeChanged();
     }
 }
        void OnLayoutSizeChanged( object sender, LayoutEventArgs e )
        {
            Debug.Assert( Dispatcher.CurrentDispatcher == Context.NoFocusManager.ExternalDispatcher, "This method should only be called by the ExternalThread." );
            if( e.Layout == _keyboard.CurrentLayout )
            {
                UpdateH();
                UpdateW();

                Context.NoFocusManager.NoFocusDispatcher.Invoke( (Action)(() =>
                {
                    OnPropertyChanged( "H" );
                    OnPropertyChanged( "W" );
                }) );
            }
        }