Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to implement the ThemeHelper that populates an existing RibbonGalleryBarItem or any menu with items

$
0
0

This example demonstrates how to implement the WinForm SkinHelper class functionality in WPF applications (ThemeHelper) that populate an existing RibbonGalleryBarItem or any menu (PopupMenu or BarSubItem) with items that correspond to DevExpress themes.

The basic logic is implemented in the ThemeHelper class.

Update:

Starting with v14.1, we introduced the Behavior class' special RibbonGalleryItemThemeSelectorBehavior and BarSubItemThemeSelectorBehavior descendants that automatically populate the corresponding BarSubItem and RibbonGalleryBarItem items with all available themes:

[XAML]
<dxr:RibbonGalleryBarItemx:Name="ribbonGalleryBarItem1"....><dxmvvm:Interaction.Behaviors><dxr:RibbonGalleryItemThemeSelectorBehavior/></dxmvvm:Interaction.Behaviors>

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>