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

How to use the ThemeResource extension to load resources from DevExpress themes dynamically

$
0
0
The ThemeResource extension allows you to load a resource from a currently applied DevExpress theme without specifying the theme name in xaml and reload the resource if a theme is changed. You can reference the resource in xaml as follows:
[XAML]
<BorderBackground="{dxci:ThemeResource {dxt:FloatingContainerThemeKey ResourceKey=FloatingContainerBackground}}"/>

 

See Also:
KA18580 - How to modify DX themes in WPF
K18542 - How to implement the ThemeMananger theme support in custom controls
T128436 - How to use DevExpress themes in a WPF Application


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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