This example generates ribbon pages (RibbonPage), groups (RibbonPageGroup), and items (BarButtonItem) from a View Model collection:
To generate pages in the RibbonPageCategory, bind the RibbonPageCategoryBase.PagesSource property to a collection. Use the RibbonPageCategoryBase.PageTemplate property to specify a template for generated pages.
The RibbonPage and RibbonPageGroup contain similar properties that allow you to generate groups and bar items:
- RibbonPage.GroupsSource, RibbonPage.GroupTemplate
- RibbonPageGroup.ItemLinksSource, RibbonPageGroup.ItemTemplate
- MainWindow.xaml (VB: MainWindow.xaml)
- ViewModel.cs (VB: ViewModel.vb)