Articles in this section
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.

Localized context menu items

Figure 1: Localized context menu items

Sample:

https://www.syncfusion.com/downloads/support/directtrac/general/Localization_DockingManager-702857475.zip

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied