For example I can use System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor.ButtonFace)
But how do i get to System.Drawing.Color.FromKnownColor(System.Drawing.KnownColor.primary ? which is a theme color ?
Application.Theme…. methods. For example, Application.Theme.GetColor(“inactiveBorder”).
Another way is Color.FromName(“@inactiveBorder”). Adding the @ prefix to a color or font name means it’s a name defined in the theme. However, in this case the RGB values will be invalid since it’s only used for rendering back to the client.
You can also read icons, fonts, values assigned to specific appearance keys and states.
It’s used in the Wisej.ResponsiveNavigationPanel samples.
Also look for: https://docs.wisej.com/api/wisej.core/general/wisej.core.clienttheme
Please login first to submit.