Event argument when a keyboard is renamed. Gives access to the keyboard and the previous name.
Inheritance: KeyboardEventArgs
        void OnKeyboardRenamed( object sender, KeyboardRenamedEventArgs e )
        {
            Debug.Assert( Dispatcher.CurrentDispatcher == NoFocusManager.ExternalDispatcher, "This method should only be called by the ExternalThread." );
            SkinInfo skin;
            if( _skins.TryGetValue( e.PreviousName, out skin ) )
            {
                _skins.Remove( e.PreviousName );
                UnregisterFromHighlighter( skin );
                Unsubscribe( skin );

                skin.NameKeyboard = e.Keyboard.Name;
                _skins.Add( skin.NameKeyboard, skin );
                RegisterHighlighter( skin );
                Subscribe( skin );

            }
        }
Example #2
0
 void Keyboards_KeyboardRenamed( object sender, KeyboardRenamedEventArgs e )
 {
     OnPropertyChanged( "Name" );
 }