Handles Alt, F10 and so on
Beispiel #1
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public Ribbon()
 {
     VerticalAlignment = VerticalAlignment.Top;
     KeyboardNavigation.SetDirectionalNavigation(this, KeyboardNavigationMode.Contained);
     this.Loaded += this.OnLoaded;
     this.Unloaded += this.OnUnloaded;
     keyTipService = new KeyTipService(this);
 }
        /// <summary>
        /// Default constructor
        /// </summary>
        public Ribbon()
        {
            this.VerticalAlignment = VerticalAlignment.Top;
            KeyboardNavigation.SetDirectionalNavigation(this, KeyboardNavigationMode.Contained);

            WindowChrome.SetIsHitTestVisibleInChrome(this, true);

            this.keyTipService = new KeyTipService(this);

            this.Loaded += this.OnLoaded;
            this.Unloaded += this.OnUnloaded;
        }