Example #1
0
 public void Show(object objectWithContext)
 {
     Initialize();
     if (!_HasInitialized)
     {
         return;
     }
     if (_hideOtherTabsInSameGroup)
     {
         RibbonTabContextUIHelper.Show(_ribbonTabItem, Ribbon);
     }
     else
     {
         _ribbonTabItem.Visibility = Visibility.Visible;
         if (!Ribbon.IsCollapsed)
         {
             _ribbonTabItem.IsSelected = true;
         }
     }
     Ribbon.Refresh();
 }
Example #2
0
 public virtual void Show(object c)
 {
     SetDataContext(c);
     RibbonTabContextUIHelper.Show(this, Ribbon);
     Ribbon.Refresh();
 }