- Expression Blend
- Testing
- Localization
Contact Support
Common Supports in Essential Studio WPF
16 Oct 20233 minutes to read
Expression Blend
Most of the Syncfusion controls are enhanced with blend support. The following steps allow the control to design in Visual Studio Expression Blend.
-
Create a WPF project in Expression Blend and refer to the Syncfusion corresponding control’s assemblies. For example, to add Docking Manager control, add its assembly Syncfusion.Tools.Wpf and its dependency assembly Syncfusion.Shared.Wpf
-
Search for Control in the Toolbox.
-
Drag the control to the designer. It generates the control in designer.
Testing
The following Syncfusion controls come with built in testing support like Coded UI and QTP that enables you to develop enriched automation Test Project for automation to ensure the reliability.
Coded UI
- CellGrid
- DataGrid
- TreeGrid
- GridDataControl
- Ribbon
- DockingManager
QTP
- CellGrid
- DataGrid
- TreeGrid
- GridDataControl
Localization
Localization is the process of making your application multi-lingual, by formatting the content according to cultures. This involves configuring the application for a specific language. Culture is the combination of language and location, for example En-US is the culture for English spoken in United States; En-GB is the culture for English spoken in Great Britain. Syncfusion controls allow you to set custom resource through the Resx file with standard filename as [AssemblyName].[CultureInfo Code].resx, for example Syncfusion.Tools.wpf.fr-FR.resx, Syncfusion.SfSchedule.wpf.fr-FR.resx. And by giving the string values in the resource file for a specific culture and set the culture in the application. The string values should be set to the controls respective resource key.
The followings are the step to localize a control:
- Add Resources file for the different cultures.
- Assign the value to each culture using key
- Assign a Current UI Culture to the application.
How to Add a Resource file, like Syncfusion.Tools.Wpf.dll Assembly?
To localize WPF controls, the resource file needs to be created as per following steps:
- Create a folder named Resources in the application.
- Open the Add New Item Dialog using Ctrl+Shift+A keys
- Create a resource file, Resx file, and name it Syncfusion.Tools.Wpf
.resx For example, Syncfusion.Tools.Wpf.fr-FR.resx.
NOTE
In case, the Shared dll controls is used in the application, then create another resource file in name Syncfusion.Shared.Wpf
.resx For example, Syncfusion.Shared.Wpf.fr-FR.resx and the naming convention needs to be followed mandatorily.
The following screenshot explains the addition of a Resource file to the application.
How to assign values in Resources file?
To assign Values in Resource, the resource file need to be updated as per the following steps.
- Open the required file by double clicking it from Solution Explorer.
-
Add key (Name) and its corresponding localized value by editing its field as shown in the following image.
-
Similarly add all need key (Name) for required assembly for example (Syncfusion.Tools.Wpf.dll). And the following screenshot displays the String property names for Tools.WPF controls with French values.
NOTE
The default resource file for applicable assemblies can be downloaded by table provided at the end of this page.
How to assign UI Culture to the application?
Mention the culture to be referred while initializing the application, so that you can refer to the appropriate value provided in resource file. The following code illustrates the implementation of culture information settings.
public MainWindow()
{
InitializeComponent();
System.Threading.Thread.CurrentThread.CurrentUICulture = newSystem.Globalization.CultureInfo("fr-FR");
}
Localization Resource file
Following table represents available Resource file to the Assemblies and it can be downloaded.
Properties
Assembly | Resource file (.resx) |
---|---|
Syncfusion.Tools.wpf.dll | |
Syncfusion.Shared.wpf.dll | |
Syncfusion.ReportViewer.wpf.dll. | |
Syncfusion.ReportDesigner.wpf.dll | |
Syncfusion.SfSchedule.WPF.dll | |
Syncfusion.Diagram.wpf.dll | |
Syncfusion.OlapChart.WPF.dll | |
Syncfusion.OlapGrid.WPF.dll | |
Syncfusion.OlapClient.WPF.dll | |
Syncfusion.OlapGauge.WPF.dll | |
Syncfusion.OlapShared.WPF.dll | |
Syncfusion.OlapTools.WPF.dll | |
Syncfusion.PdfViewer.Windows.dll | |
Syncfusion.PdfViewer.WPF.dll | |
Syncfusion.PivotAnalysis.WPF.dll | |
Syncfusion.SfGrid.WPF.dll | |
Syncfusion.Spreadsheet.Wpf.dll | |
Syncfusion.Grid.WPF.dll | |
Syncfusion.SfRichTextBoxAdv.WPF.dll | |
Syncfusion.SfRichTextRibbon.WPF.dll |