Skip to main content
A newer version of this page is available. .

Bar Item Behavior Options

Bar Item Behavior Options

For different types of bar item links you need to use different events to implement the required functionality.

When a bar item link that represents a button is clicked, it invokes the BarItem.ItemPress and BarItem.ItemClick events of the corresponding bar item. The ItemPress event occurs before the mouse button is released. The ItemClick event occurs after that. If you want to implement central management for click events, you can subscribe to the RibbonControl’s RibbonControl.ItemPress and RibbonControl.ItemClick events. These events fire when any bar item link is clicked.

For the links that represent check buttons, handle the BarCheckItem.CheckedChanged event to implement specific functionality.