Skip to content

SyncfusionExamples/how-to-localize-the-drag-and-drop-window-text-in-treegrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Localize the Drag and Drop Window Text in WPF / UWP TreeGrid?

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.

For WPF:

  1. Create new folder and named as Resources in your application.

  2. Add the default resource file of TreeGrid into Resources folder. You can download the Syncfusion.SfGrid.WPF.resx here.

Added the default resource file

  1. Right-click on the Resources folder, select Add and then NewItem.

  2. 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.

  3. The culture name that indicates the name of language and country.

Adding resource file for german culture

  1. Now, select Add option to add the resource file in Resources folder.

Added the german culture resource file

7.Add the Name/Value pair in Resource Designer of Syncfusion.SfGrid.WPF.de.resx file and change its corresponding value to corresponding culture.

Added the name value pair in resource file

Localization applied to TreeGrid Drag and Drop

For UWP:

  1. Right-click on the project, select Add and then NewItem.

  2. In Add New Item wizard, select the Resource File option and name the filename as Syncfusion.SfGrid.UWP.Resources.<culture name>.resw.

Adding resource file for german culture

  1. For example, you have to give name as Syncfusion.SfGrid.UWP.Resources.de.resw for German culture.

  2. The culture name that indicates the name of language and country.

  3. Now the resource file is added.

Added the german culture resource file

  1. Add the Name/Value pair in Resource Designer of Syncfusion.SfGrid.UWP.Resources.de.resw file and change its corresponding value to corresponding culture.

Added the name value pair in resource file

You can get the TreeGrid's key from default resource Syncfusion.SfGrid.UWP.Resources.resw.

Localization applied to TreeGrid Drag and Drop

About

This example illustrates how to localize the drag and drop window text in treegrid

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages