Hello, telerik community :)
While using the color blending mechanism, I noticed that if a rad control is created for the first time after the color blending takes place, that control will not have the blending changes.
In my application, as soon as I open the main form, I apply a theme and then a color blending.
m_Theme = AvailableThemes.ControlDefault
m_CurrentTheme = Telerik.WinControls.ThemeResolutionService.GetTheme(
m_CurrentTheme = Telerik.WinControls.ThemeResolutionService.GetTheme(name)
Telerik.WinControls.ThemeResolutionService.ApplicationThemeName = name
m_CurrentTheme.ThemeProperties(blend.Name) = blend.BlendHslColor
is an enumeration of theme names. All other themes except ControlDefault are assembly Resources (tssp files).
As soon as the main window of the application is shown, my theme "manager" loads the last used theme and applies a color blending to that theme.
It seems that rad controls, which are not loaded before the color blend, will not get the new colors. RadPageView is even worse, even if it is loaded (in my case, my main form has a RadPageView in stack viewmode), it will only apply the color blending to new RadPageViews of the same view mode (strip or stack).
To successfully apply color bindings in controls that will be created after the initial color blending, I have to add dummy controls (for example, a RadPageView with view mode strip) on my main form's control collection (with size 0,0 show that these controls don't show up) and after the application of color blending, I remove them.
Is this the desired functionality? I thought that color blending would be available to all controls using the theme that has the color blending.
Forgot to mention that I am using the latest dev release of RadControls for WinForms Q3 2010 (2010.3.10.1326).