I have a button and I'd like it to look the same way as the title bar close button does.
How can I apply a specific style to a control?
The only thing I tried is to access theme information, but it is really complicated as there are multiple levels of nesting and derivation of settings etc. I think, that there should be easier way to do this.
var theme = Telerik.WinControls.ThemeResolutionService.GetTheme(TelerikSkinAdapter.GetThemeName("MySkin"));
foreach (var group in theme.StyleGroups)
foreach (var registration in group.Registrations)
System.Diagnostics.Debug.WriteLine($"{registration.ControlName} {registration.ControlType} {registration.ElementName} {registration.ElementType}");