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

How to implement a theme selector based on a bar item

$
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 RibbonGalleryItemThemeSelectorBehavior, BarSubItemThemeSelectorBehavior, and BarSplitItemThemeSelectorBehavior classes that automatically populate a corresponding bar item 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>