Use plugin from DevExpress ribbon

Aug 13, 2015 at 11:03 AM
Edited Aug 13, 2015 at 11:03 AM
How do you run a plugin by clicking on a custom button? I use DevExpress ribbon bar. Ordinary functions such as Pan and Zoom are easy to call, but how do you call for example the WebMapPlugin?
Aug 14, 2015 at 6:53 PM
Solved using guidance from the DevExpress ribbon example linked to from the Get Started Guide (1.7) (my application is using any of DotSpatial's infrastructure). Implemented IHeaderControl instead of deriving from HeaderControl, since I have the ribbon page in a user control (XtraUserControl). Also changed HomeRootItemKey string constant value to the name of the ribbon page, in my case = "_ribbonMapPage". Then I set item.RootKey = HomeRootItemKey in the beginning of each Add(xxxActionItem item) method. Copied members from HeaderControl that was not included in IHeaderControl.
Marked as answer by ModernaTider on 8/14/2015 at 11:53 AM