Hi everybody.
I'm using the lines:
Uri uri = new Uri("PresentationFramework.Classic;V3.0.0.0;31bf3856ad364e35;component\\themes/classic.xaml", UriKind.Relative);
Resources.MergedDictionaries.Add(Application.LoadComponent(uri) as ResourceDictionary);
to apply a specific theme to my application. This is working fine for all standard controls (like RichTextBox) but doesn't work for RichTextBoxExtended controls (which are still shown with the default os theme). I do have a lot of subclasses in my app and all do have the same problem. All of them are based on the RichTextBoxExtended example, like xbsTextBox : TextBox, the main goal is to provide some additional DependencyProperties and different context menues for the controls.
Every hint is apreciated. Michael
I'm using the lines:
Uri uri = new Uri("PresentationFramework.Classic;V3.0.0.0;31bf3856ad364e35;component\\themes/classic.xaml", UriKind.Relative);
Resources.MergedDictionaries.Add(Application.LoadComponent(uri) as ResourceDictionary);
to apply a specific theme to my application. This is working fine for all standard controls (like RichTextBox) but doesn't work for RichTextBoxExtended controls (which are still shown with the default os theme). I do have a lot of subclasses in my app and all do have the same problem. All of them are based on the RichTextBoxExtended example, like xbsTextBox : TextBox, the main goal is to provide some additional DependencyProperties and different context menues for the controls.
Every hint is apreciated. Michael