We have some code that changes the following resource strings:
Infragistics.Windows.DockManager.Resources.Customizer.SetCustomizedString("CloseAllButThisPaneMenuItem", "Delete All But This"); Infragistics.Windows.DockManager.Resources.Customizer.SetCustomizedString("CloseButtonToolTip", "Delete Current Scenario"); Infragistics.Windows.DockManager.Resources.Customizer.SetCustomizedString("ClosePaneMenuItem", "Delete Current Scenario"); Infragistics.Windows.DockManager.Resources.Customizer.SetCustomizedString("PositionMenuToolTip", "Scenario List");
This works great, but we want to use the XamDockManager in another context where these strings would not make sense. How can I set these for a particular instance, preferrably in XAML?
Using v16.1, most recent service release.
Hello Walter,The resource strings are set based on the type of the control, rather than on a specific instance. That applies the modified strings to all XamDockManagers in the application. There is an option to unregister resources if you would like to remove the registered once later. emove the registered once later. You can have a look at the Resetting the Default Resource StringsSection at http://help.infragistics.com/Help/Doc/WPF/2016.1/CLR4.0/html/Developers_Guide_Customizing_Resource_Strings.html.