This example illustrates how to localize the drag and drop window text in WPF TreeGrid and UWP TreeGrid (SfTreeGrid).
To localize the TreeGrid, drag and drop window based on CurrentUICulture using resource files, follow the below steps.
-
Create new folder and named as Resources in your application.
-
Add the default resource file of TreeGrid into Resources folder. You can download the Syncfusion.SfGrid.WPF.resx here.
-
Right-click on the Resources folder, select Add and then NewItem.
-
In Add New Item wizard, select the Resource File option and name the filename as Syncfusion.SfGrid.WPF.<culture name>.resx. For example, you have to give name as Syncfusion.SfGrid.WPF.de.resx for German culture.
-
The culture name that indicates the name of language and country.
- Now, select Add option to add the resource file in Resources folder.
7.Add the Name/Value pair in Resource Designer of Syncfusion.SfGrid.WPF.de.resx file and change its corresponding value to corresponding culture.
-
Right-click on the project, select Add and then NewItem.
-
In Add New Item wizard, select the Resource File option and name the filename as Syncfusion.SfGrid.UWP.Resources.<culture name>.resw.
-
For example, you have to give name as Syncfusion.SfGrid.UWP.Resources.de.resw for German culture.
-
The culture name that indicates the name of language and country.
-
Now the resource file is added.
- Add the Name/Value pair in Resource Designer of Syncfusion.SfGrid.UWP.Resources.de.resw file and change its corresponding value to corresponding culture.
You can get the TreeGrid's key from default resource Syncfusion.SfGrid.UWP.Resources.resw.








