I need to config ribbon dynamic. Can I add button programmatically?
And how to add large button or normal button programmatically?
Hello lishengjie,
Yes, you can. You would need to add a RibbonTab, a RibbonGroup and then the tool as shown here in the online documentation: http://help.infragistics.com/NetAdvantage/WPF/2012.2/CLR4.0/?page=xamRibbon_Add_a_Tab_to_xamRibbon.html ,
http://help.infragistics.com/NetAdvantage/WPF/2012.2/CLR4.0/?page=xamRibbon_Add_a_Ribbon_Group_to_a_Ribbon_Tab.html ,
http://help.infragistics.com/NetAdvantage/WPF/2012.2/CLR4.0/?page=xamRibbon_Add_Tools_to_a_Ribbon_Group.html ,
and here is an link from there as well regarding the sizing modes: http://help.infragistics.com/Help/NetAdvantage/WPF/2012.2/CLR4.0/html/xamRibbon_Resize_a_Tool.html
Please let me know, if I can be of any further assistance on the matter.