Category / Section
How to localize DockingManager?
1 min read
You can localize the DockingManager as follows.
Creating resource file
Create a new resource file with the name Syncfusion.Tools.Wpf.<culturename>.
Example: Syncfusion.Tools.Wpf.fr-FR
Adding resources
Add the resources that are to be translated in the resource file as follows.
Example: Hide - cacher
Setting culture
Set the respective Culture for the current thread so that, the resources are mapped from the resource file having this culture name.
MainWindow.xaml.cs
public Window1() { System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("fr-FR"); InitializeComponent(); }
The above code localizes the context menu items as illustrated in the following code example.
Figure 1: Localized context menu items
Sample: