How to get a color from the current theme, which wisej is using?

0
0

Hello,

I wish to detect a color from the skin which Wisej application is using. For example, the color of a disable control. How i can do that ?

Thanks

  • You must to post comments
0
0

Hi Tung,

it´s described here: https://wisej.com/support/question/read-only-access-on-theme-file

BUT as we changed Application.Theme to internal, that code is currently not working.
It will be working again in the next build when we change it to public back again.
Sorry for the confusion.

Here is some code you can use as a workaround to get the theme before the next build is available:

var theme = (Wisej.Core.ClientTheme)typeof(Wisej.Base.ApplicationBase).GetProperty(“Theme”, System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static).GetValue(null);

Best regards
Frank

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.