Skip to content

Commit 641ded1

Browse files
Review corrections updated, removed un needed file and updated code alignment
1 parent 13f473a commit 641ded1

File tree

3 files changed

+20
-124
lines changed

3 files changed

+20
-124
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,25 @@ public MainWindow()
1616
## Steps to localize based on CurrentUICulture using Resource files
1717

1818
1. Create new folder, named as Resources in the application.
19-
2. Add the default resource file of Chart into Resources folder (Syncfusion.SfChart.WPF.resx).
20-
21-
![Add_Default_Folder.png](https://support.syncfusion.com/kb/agent/attachment/article/18165/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMyNTEwIiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5zeW5jZnVzaW9uLmNvbSJ9.PRnjBmQYSMT_kThqqZYolBc2n9L2o-hKhoGHBHMSNzc)
2219

23-
3. Right-click on the Resources folder, select Add, and then click New Item. In the Add New Item dialog, select the Resource File option and name the file as `Syncfusion.SfChart.WPF.<culture name>.resx`. For example, name it as `Syncfusion.SfChart.WPF.fr-FR.resx` to add localization support for the French language.
20+
2. Right-click on the Resources folder, select Add, and then click New Item. In the Add New Item dialog, select the Resource File option and name the file as `Syncfusion.SfChart.WPF.<culture name>.resx`. For example, name it as `Syncfusion.SfChart.WPF.fr-FR.resx` to add localization support for the French language.
2421

25-
![Add_Localization_Resource_File.png](https://support.syncfusion.com/kb/agent/attachment/article/18165/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMyNTExIiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5zeW5jZnVzaW9uLmNvbSJ9.FcENlDMM3L40xbxMBMvdO_JF7UDWFGGnyXKGL3Ank68)
22+
![Add resource file](https://support.syncfusion.com/kb/agent/attachment/article/18165/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMyNzQ2Iiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5zeW5jZnVzaW9uLmNvbSJ9.F50nTICguTBOLogYEQPnYVxPMu_7OsIynI9kHGd_OZo)
2623

27-
4. The culture name that indicates the name of language and country.
28-
5. Now, add the Name/Value pair in Resource Designer of Syncfusion.SfChart.WPF.fr-FR.resx file and change its corresponding value to the corresponding culture.
24+
3. The culture name that indicates the name of language and country.
25+
4. Now, add the Name/Value pair in Resource Designer of Syncfusion.SfChart.WPF.fr-FR.resx file and change its corresponding value to the corresponding culture.
2926

30-
![Add_Localized_Value.png](https://support.syncfusion.com/kb/agent/attachment/article/18165/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMyNTE0Iiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5zeW5jZnVzaW9uLmNvbSJ9.7flN-Ic-sbPFkAJ4vf3ZK80ZqTZJ-cGUqI0LlyQB02k)
27+
![Add localized culture value](https://support.syncfusion.com/kb/agent/attachment/article/18165/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMyNzQ3Iiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5zeW5jZnVzaW9uLmNvbSJ9.HHbaZGselIepJE2F0FG3mYd04KlKoWcr67h2eiTU0aI)
3128

3229
The following image illustrates the WPF Chart successfully localized in the French language, displaying the changes applied through the provided localization steps.
3330

3431
## Output
35-
![FinalOutput.png](https://support.syncfusion.com/kb/agent/attachment/article/18165/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMyNTEzIiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5zeW5jZnVzaW9uLmNvbSJ9.PE-DDVupHY9H6vfQ0kDSLqrpk9l7elAR9boMCecIj68)
32+
![Localization demo](https://support.syncfusion.com/kb/agent/attachment/article/18165/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMyNzQ4Iiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5zeW5jZnVzaW9uLmNvbSJ9.8jhoSR8hp2sRn-mPUMrbEFjfSBTeSIQ8OEvxzjA4uOs)
3633

3734
## Troubleshooting
3835

3936
#### Path too long exception
4037

4138
If you are facing a path too long exception when building this example project, close Visual Studio and rename the repository to a shorter name before building the project.
4239

43-
For better understanding, we have attached the [GitHub project](https://github.com/SyncfusionExamples/How-to-Localize-Labels-in-WPF-Chart-Control) for your future reference.
40+
For better understanding, we have attached the [GitHub project]() for your future reference.

SfChart_Localization/MainWindow.xaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
mc:Ignorable="d"
99
Title="MainWindow" Height="450" Width="800">
1010

11-
<Grid>
11+
<Grid Height="550" Width="750">
1212

1313
<Grid.DataContext>
1414
<local:ViewModel />
@@ -25,18 +25,18 @@
2525
</syncfusion:SfChart.SecondaryAxis>
2626

2727
<syncfusion:SfChart.Series>
28-
<syncfusion:HiLoOpenCloseSeries
29-
Name="series"
30-
ItemsSource="{Binding StockPriceDetails}"
31-
XBindingPath="Date"
32-
High="High"
33-
Low="Low"
34-
Open="Open"
35-
Close="Close"
36-
Label="HiLoOpenClose"
37-
Interior="#4A4A4A"
38-
EnableAnimation="True"
39-
ShowTooltip="True" />
28+
<syncfusion:HiLoOpenCloseSeries
29+
Name="series"
30+
ItemsSource="{Binding StockPriceDetails}"
31+
XBindingPath="Date"
32+
High="High"
33+
Low="Low"
34+
Open="Open"
35+
Close="Close"
36+
Label="HiLoOpenClose"
37+
Interior="#4A4A4A"
38+
EnableAnimation="True"
39+
ShowTooltip="True" />
4040
</syncfusion:SfChart.Series>
4141

4242
<syncfusion:SfChart.Behaviors>

SfChart_Localization/Resources/Syncfusion.SfChart.WPF.resx

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)