Via the SPRibbon object (! this object needs both the Microsoft.SharePoint and the Microsoft.Web.CommandUI DLL's) you can do all kinds of stuff with the SharePoint 2010 ribbon user interface.
Basically you can do something like this in the code of for example a web part:
SPRibbon ribbon = SPRibbon.GetCurrent(this.Page);
and then call any method you want. For the ID's of the out of the box ribbons, check this file:
14/TEMPLATE/GLOBAL/XML/CMDUI.xml
Geen opmerkingen:
Een reactie posten