I attempted to use this in a test app I created to test the new features.
Now this is really simple code (love it) but for some reason I cannot get it to work.
I have a form that inherits radform. I have a ribbonbar (pointless but just for testing) , a status
bar and a button. The button , statusbar and form all use the desert theme and the ribbonbar
the standard blue theme. I attempt to apply the colour blending after the button is clicked.
The code for it is as follows.
public partial class frmMain : RadForm
{
private Theme currentTheme;
private const string baseColorParamName = "BaseColor";
public frmMain()
{
InitializeComponent();
}
private void radButton1_Click(object sender, EventArgs e)
{
currentTheme = ThemeResolutionService.GetTheme("Desert");
HslColor baseColor = HslColor.FromAhsl(0.118, 0.9, 0.9);
currentTheme.AddColorBlend(baseColorParamName,baseColor);
currentTheme.ThemeProperties[baseColorParamName] = baseColor;
}
}
The code generates no errors and the form borders sort of flicker as it happens,
the colour blending however has no effect. I assume I am missing something
simple but the code above barring the moving of some lines to a single proc,
is identical to that in the examples.
Could anyone shed some light on what I am doing incorrectly ?