Skip to content

Commit 953c76b

Browse files
ES-975464 - Addressed the concerns
1 parent 5df7db8 commit 953c76b

10 files changed

+44
-6
lines changed

AddedDefaultResourceFileInWPF.png

49.1 KB
Loading
91.1 KB
Loading
66 KB
Loading

README.md

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,54 @@
22

33
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).
44

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

7-
1. Create new folder and named as `Resources` in your application.
7+
### For WPF:
88

9-
2. Add the default resource file of treegrid into `Resources` folder.
9+
1. Create new folder and named as **Resources** in your application.
1010

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).
1212

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+
![Added the default resource file](AddedDefaultResourceFileInWPF.png)
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.&lt;culture name&gt;.resx**. For example, you have to give name as **Syncfusion.SfGrid.WPF.de.resx** for German culture.
1418

1519
5. The culture name that indicates the name of language and country.
1620

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+
![Adding resource file for german culture](ResourceFileForGermanCultureInWPF.png)
22+
23+
6. Now, select Add option to add the resource file in **Resources** folder.
24+
25+
![Added the german culture resource file](AddedGermanCultureResourceFileInWPF.png)
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+
![Added the name value pair in resource file](ResourceFileImage.png)
30+
31+
![Localization applied to TreeGrid Drag and Drop](TreeGridWithLocalizationApplied.png)
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.&lt;culture name&gt;.resw**.
38+
39+
![Adding resource file for german culture](ResourceFileForGermanCultureInUWP.png)
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+
![Added the german culture resource file](AddedGermanCultureResourceFileInUWP.png)
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+
![Added the name value pair in resource file](ResourceFileImageUWP.png)
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+
![Localization applied to TreeGrid Drag and Drop](TreeGridWithLocalizationAppliedUWP.png)
109 KB
Loading
117 KB
Loading

ResourceFileImage.png

186 KB
Loading

ResourceFileImageUWP.png

250 KB
Loading
138 KB
Loading
93.8 KB
Loading

0 commit comments

Comments
 (0)