Skip to content

Commit 520f29d

Browse files
authored
Merge pull request #1 from SyncfusionExamples/ES-975464
ES-975464 - Resolve the ReadMe file length issue in this sample repository
2 parents 6d83ae7 + a49c5f7 commit 520f29d

10 files changed

+55
-2
lines changed

AddedDefaultResourceFileInWPF.png

49.1 KB
Loading
91.1 KB
Loading
66 KB
Loading

README.md

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,55 @@
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+
![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.<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+
![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.<culture name>.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](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+
![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)