ContextMenu does not change the theme in runtime while all other controls does.

Editors for WPF Forum

The latest build of this product (v2019.1 build 0685) was released 2 months ago, which was before this thread was created.
Posted 14 days ago by Daniel Constantin
Version: 19.1.0685
Avatar

Hello!

I have an application which starts for now with the MetroDark theme enabled. I have a context menu which is colored with MetroDark theme when opening it, but when switching to other themes (in runtime) the colorization remaines. It is the same if I start the application with MetroWhite theme and then changed to MetroDark. The ContextMenu remaines with the colorization from MetroWhite.

Kind regards,

Daniel

Comments (2)

Posted 14 days ago by Daniel Constantin
Avatar

Maybe the problem is that I populate the ThemedDataGrid (the context menu is the one for this control) dynamically using an attached property as a different source of items. I needed a grid with a number of columns which might change in runtime.

Posted 14 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Daniel,

It's tough to say without something to debug with, but in general, assuming you allow our ThemeManager to style native controls, ContextMenus should appear the same as the current theme.  Do you have some simple sample code you can paste in here from one of our samples that shows it happening so we can take a look?


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.