Exemple #1
0
 public void Hide(object objectWithContext)
 {
     if (!_HasInitialized)
     {
         Initialize();
     }
     if (!_HasInitialized)
     {
         return;
     }
     if (_hideOtherTabsInSameGroup)
     {
         RibbonTabContextUIHelper.Hide(_ribbonTabItem);
     }
     else
     {
         _ribbonTabItem.IsSelected = false;
     }
     Ribbon.Refresh();
 }
Exemple #2
0
 public virtual void Hide(object c)
 {
     this.DataContext = null;
     RibbonTabContextUIHelper.Hide(this);
 }