/// <summary> /// Adds the specified context tab. /// </summary> /// <param name="contextTab">The context tab.</param> public void AddContextualMenu(RibbonContextualTabGroupData contextTab) { this.Dispatcher.Invoke((Action)delegate { App.RibbonData.ContextualTabGroupDataCollection.Add(contextTab); }); }
/// <summary> /// Adds the specified context tab. /// </summary> /// <param name="contextTab">The context tab.</param> public void AddContextualMenu(RibbonContextualTabGroupData contextTab) { this.Dispatcher.Invoke((Action) delegate { App.RibbonData.ContextualTabGroupDataCollection.Add(contextTab); }); }