Hi David A.,
Thank you for writing.
There is no way you can extract the theme properties for a given state, but there is a way to achieve the behavior you are asking for. In order to do this, you should override the OnShown
method of your form as follows:
We first set the VisualState property and refresh the theme in order to load the property settings from the theme. Then, we use SetValue for some of the properties that are set through a theme, because doing so, we are setting them as a local value. This means that they will no longer be affected by theme settings. Depending on the theme you are using, there might be some other properties you would have to set as local, because the above set properties are not the only ones that could be set through a theme.
I hope you find this information useful. If you have any additional questions, do not hesitate to ask.
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items