Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Displaying Menutool content in an inherited control
posted

I can't seem to display the image and caption when displaying an inherited instance of the MenuTool, anyone got a solution/workaround to this?

 

 

private void AddMenuTool()

{

RibbonTabItem _tab = new RibbonTabItem();_tab.Header = "TAB";

_myRibbon.Tabs.Add(_tab);

RibbonGroup _group = new RibbonGroup();

_group.Caption = "GROUP";

_tab.RibbonGroups.Add(_group);

ChildMenuTool menuTool = new ChildMenuTool();

menuTool.SetValue(RibbonGroup.MinimumSizeProperty, RibbonToolSizingMode.ImageAndTextLarge);

menuTool.Caption = "MENUTOOL";menuTool.LargeImage = new System.Windows.Media.Imaging.BitmapImage(new Uri(@"c:\default_curve_icon.png"));

_group.Items.Add(menuTool);

}

public class ChildMenuTool : MenuTool

{

}

 

Thanks,

 

Jon.

Parents
No Data
Reply Children
No Data