This project has moved and is read-only. For the latest updates, please go here.


Jan 14, 2009 at 8:53 PM

I want to handle the ActiveGroupChanged event of the NavBarWorkspace and fire off an EventTopic. I'm having trouble with determining what group corresponds to which SmartPart that the NavBarWorkspace contains. I have a list of SmartPartNames that contains the names of the smartparts in the NavBarWorkspace. I need to be able to match the selected NavBarGroup with a SmartPartName but there is nothing other than the Caption field in the NavBarGroup I could compare against.

private void uxNavBarWorkspace_ActiveGroupChanged(object sender, DevExpress.XtraNavBar.NavBarGroupEventArgs e)
       string x = e.Group.SomethingStringField;
       if(x == SmartPartNames.Group1)
              // Fire event1
              // Fire event2

Another solution would be if I could add a Command Invoker to a NavBarGroup so I can fire the command when that group is selected.
Any ideas?

Jan 14, 2009 at 9:20 PM
It seems that the ActiveGroupChanged event should trigger the SmartPartActivated, but it does not.