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