|
2 | 2 |
|
3 | 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 | 4 |
|
5 | | -To localize the TreeGrid, drag and drop window based on CurrentUICulture using resource files, follow the below steps. |
| 5 | +To localize the TreeGrid, drag and drop window based on **CurrentUICulture** using resource files, follow the below steps. |
6 | 6 |
|
7 | | -1. Create new folder and named as `Resources` in your application. |
| 7 | +### For WPF: |
8 | 8 |
|
9 | | -2. Add the default resource file of treegrid into `Resources` folder. |
| 9 | +1. Create new folder and named as **Resources** in your application. |
10 | 10 |
|
11 | | -3. Right-click on the `Resources` folder, select Add and then NewItem. |
| 11 | +2. Add the default resource file of TreeGrid into **Resources** folder. You can download the Syncfusion.SfGrid.WPF.resx [here](https://www.syncfusion.com/downloads/support/directtrac/general/ze/Syncfusion.SfGrid.WPF2020296999.zip). |
12 | 12 |
|
13 | | -4. In Add New Item wizard, select the Resource File option and name the filename as Syncfusion.SfGrid.WPF.<Culture_Name>.resx for WPF and Syncfusion.SfGrid.UWP.Resources.<Culture_Name>.resw for UWP. For example, you have to give name as `Syncfusion.SfGrid.WPF.de.resx` / `Syncfusion.SfGrid.UWP.Resources.de.resw` for German culture. |
| 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. |
14 | 18 |
|
15 | 19 | 5. The culture name that indicates the name of language and country. |
16 | 20 |
|
17 | | -6. Add the Name/Value pair in Resource Designer of `Syncfusion.SfGrid.WPF.de.resx` / `Syncfusion.SfGrid.UWP.Resources.de.resw` file and change its corresponding value to corresponding culture. |
| 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](http://www.syncfusion.com/downloads/support/directtrac/general/ze/Syncfusion.SfGrid.UWP.Resources-531431521.zip). |
| 54 | + |
| 55 | + |
0 commit comments