private void RibbonButtonUtility_AddRibbonButtonAction(object parameter) { if (parameter is IRibbonButtonInfo info) { ContentPanelUtility.AddViewToContentPanel <TabItem>(info, this, v => v.Header.Equals(info.DisplayName)); } }
private void RibbonButtonUtility_AddRibbonButtonAction(object parameter) { if (parameter is IRibbonButtonInfo info) { ContentPanelUtility.AddViewToContentPanel <LayoutAnchorable>(info, this, v => v.Title.Equals(info.Name, StringComparison.OrdinalIgnoreCase)); } }