Hi,
I'm doing one page with two RadRichTextBox and two different themes. This themes are applied to all application, and not only to this components, in runtime (the user choose the theme he/she want). The problem is when i have this two components the default theme load, but when i try to change the theme, the browser crash. If i have only one component everything work perfectly.
The code i use to load the theme in run time is:
The version of telerik that i'm using is the last one (Q2 2010) for silverlight.
Thanks!
I'm doing one page with two RadRichTextBox and two different themes. This themes are applied to all application, and not only to this components, in runtime (the user choose the theme he/she want). The problem is when i have this two components the default theme load, but when i try to change the theme, the browser crash. If i have only one component everything work perfectly.
The code i use to load the theme in run time is:
private
void
ChangeTheme_Click(
object
sender, RoutedEventArgs e)
{
ResourceDictionary rd =
new
ResourceDictionary();
try
{
//Load resourse dictonary
rd.Source =
new
Uri(
"/Itim.Framework.Silverlight.UI.Themes.Blue;component/Blue.xaml"
, UriKind.RelativeOrAbsolute);
//Clear previous styles if any...
App.Current.Resources.MergedDictionaries.Clear();
////Add the loaded resource dictionary to the application merged dictionaries
App.Current.Resources.MergedDictionaries.Add(rd);
}
catch
(System.Exception ex)
{
//If the path is wrong do something
MessageBox.Show(ex.Message);
}
}
The version of telerik that i'm using is the last one (Q2 2010) for silverlight.
Thanks!