Exemplo n.º 1
0
 void OnChecked(object sender, RoutedEventArgs e)
 {
     if (Ribbon != null)
     {
         Ribbon.AddToQuickAccessToolBar(Target);
     }
 }
Exemplo n.º 2
0
        private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
        {
            var qai = Ribbon.QuickAccessItems;

            foreach (var quickAccessMenuItem in qai)
            {
                Ribbon.AddToQuickAccessToolBar(quickAccessMenuItem);
            }
        }
Exemplo n.º 3
0
 private void RibbonWindow_ContentRendered(object sender, System.EventArgs e)
 {
     // Force to display all Quick Access items
     foreach (QuickAccessMenuItem menuItem in Ribbon.QuickAccessItems)
     {
         if (!Ribbon.IsInQuickAccessToolBar(menuItem))
         {
             Ribbon.AddToQuickAccessToolBar(menuItem);
         }
     }
 }