using custom theme AND custom string

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 15 years ago by johannes. g.

i am using a custom theme which is registered like this:

ThemeManager.Register(CommonThemeName.Office2007Black.ToString(), NavigationBarBaseDictionary.GroupName, typeof(Themes.NavigationBar.NavigationBarOffice2007BlackDictionary));
that works fine.

additionally i want to set a custom string on the same control

ActiproSoftware.Products.Navigation.SR.SetCustomString(ActiproSoftware.Products.Navigation.SRName.UINavigationBarToggleMinimizationButtonExpandToolTip.ToString(),"my string");
the custom string works fine, too. but now my custom theme is no longer applied. why?

thanks in advance

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA

String resources shouldn't affect theme functionality in any way. Modifying a string resource (your second line of code) would only alter the text that is used in the UI, possibly in a template.

If you think there is a problem with our code, please put together a simple sample project that repros the issue and email it over to us so we can have a look. Thanks!

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.