|
1 | | -# How to localize the drag and drop window text in treegrid? |
2 | | -This example illustrates how to localize the drag and drop window text in treegrid |
| 1 | +# How to Localize the Drag and Drop Window Text in WPF / UWP TreeGrid? |
| 2 | + |
| 3 | +This example illustrates how to localize the drag and drop window text in [WPF TreeGrid](https://www.syncfusion.com/wpf-controls/treegrid) and [UWP TreeGrid](https://www.syncfusion.com/uwp-ui-controls/treegrid) (SfTreeGrid). |
| 4 | + |
| 5 | +To localize the TreeGrid, drag and drop window based on **CurrentUICulture** using resource files, follow the below steps. |
| 6 | + |
| 7 | +### For WPF: |
| 8 | + |
| 9 | +1. Create new folder and named as **Resources** in your application. |
| 10 | + |
| 11 | +2. Add the default resource file of TreeGrid into **Resources** folder. You can download the Syncfusion.SfGrid.WPF.resx [here](https://github.com/SyncfusionExamples/how-to-localize-the-drag-and-drop-window-text-in-treegrid/blob/ES-975464/WPF/SfTreeGridDemo/Resources/Syncfusion.SfGrid.WPF.resx). |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +3. Right-click on the Resources folder, select **Add** and then **NewItem**. |
| 16 | + |
| 17 | +4. 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. |
| 18 | + |
| 19 | +5. The culture name that indicates the name of language and country. |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | +6. Now, select Add option to add the resource file in **Resources** folder. |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +7.Add the Name/Value pair in Resource Designer of **Syncfusion.SfGrid.WPF.de.resx** file and change its corresponding value to corresponding culture. |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +### For UWP: |
| 34 | + |
| 35 | +1. Right-click on the project, select **Add** and then **NewItem**. |
| 36 | + |
| 37 | +2. In Add New Item wizard, select the **Resource File** option and name the filename as **Syncfusion.SfGrid.UWP.Resources.<culture name>.resw**. |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | +3. For example, you have to give name as **Syncfusion.SfGrid.UWP.Resources.de.resw** for German culture. |
| 42 | + |
| 43 | +4. The culture name that indicates the name of language and country. |
| 44 | + |
| 45 | +5. Now the resource file is added. |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +6. Add the Name/Value pair in Resource Designer of **Syncfusion.SfGrid.UWP.Resources.de.resw** file and change its corresponding value to corresponding culture. |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +You can get the TreeGrid's key from default resource [Syncfusion.SfGrid.UWP.Resources.resw](https://github.com/SyncfusionExamples/how-to-localize-the-drag-and-drop-window-text-in-treegrid/blob/ES-975464/UWP/Resources/Syncfusion.SfGrid.UWP.Resources.resw). |
| 54 | + |
| 55 | + |
0 commit comments