The snippet demonstrates how to add all available types of Items and Subitems to RibbonBar. It also demonstrates technique to implement event handlers for available events of control, Items and Subitems.
Download the file by clicking the link above.