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.

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

    Common-Supports_images1

  2. Search for Control in the Toolbox.

    Common-Supports_images2

  3. Drag the control to the designer. It generates the control in designer.

    Common-Supports_images3

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:

  1. Create a folder named Resources in the application.
  2. Open the Add New Item Dialog using Ctrl+Shift+A keys
  3. Create a resource file, Resx file, and name it Syncfusion.Tools.Wpf.resx For example, Syncfusion.Tools.Wpf.fr-FR.resx.

Common-Supports_images4

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.

Common-Supports_images5

How to assign values in Resources file?

To assign Values in Resource, the resource file need to be updated as per the following steps.

  1. Open the required file by double clicking it from Solution Explorer.
  2. Add key (Name) and its corresponding localized value by editing its field as shown in the following image.

    Common-Supports_images6

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

    Common-Supports_images7

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.

  • C#
  • 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.Tools.Wpf.resx

    Syncfusion.Shared.wpf.dll

    Syncfusion.Shared.Wpf.resx

    Syncfusion.ReportViewer.wpf.dll.

    Syncfusion.ReportViewer.Wpf.resx

    Syncfusion.ReportDesigner.wpf.dll

    Syncfusion.ReportDesigner.Wpf.resx

    Syncfusion.SfSchedule.WPF.dll

    Syncfusion.Schedule.WPF.resx

    Syncfusion.Diagram.wpf.dll

    Syncfusion.Diagram.Wpf.resx

    Syncfusion.OlapChart.WPF.dll

    Syncfusion.OlapChart.WPF.resx

    Syncfusion.OlapGrid.WPF.dll

    Syncfusion.OlapGrid.WPF.resx

    Syncfusion.OlapClient.WPF.dll

    Syncfusion.OlapClient.WPF.resx

    Syncfusion.OlapGauge.WPF.dll

    Syncfusion.OlapGauge.wpf.resx

    Syncfusion.OlapShared.WPF.dll

    Syncfusion.OlapShared.WPF.resx

    Syncfusion.OlapTools.WPF.dll

    Syncfusion.OlapTools.WPF.resx

    Syncfusion.PdfViewer.Windows.dll

    Syncfusion.PdfViewer.Windows.resx

    Syncfusion.PdfViewer.WPF.dll

    Syncfusion.PdfViewer.WPF.resx

    Syncfusion.PivotAnalysis.WPF.dll

    Syncfusion.PivotAnalysis.Wpf.resx

    Syncfusion.SfGrid.WPF.dll

    Syncfusion.SfGrid.WPF.resx

    Syncfusion.Spreadsheet.Wpf.dll

    Syncfusion.Speradsheet.Wpf.resx

    Syncfusion.Grid.WPF.dll

    Syncfusion.Grid.Wpf.resx

    Syncfusion.SfRichTextBoxAdv.WPF.dll

    Syncfusion.SfRichTextBoxAdv.WPF.resx

    Syncfusion.SfRichTextRibbon.WPF.dll

    Syncfusion.SfRichTextRibbon.WPF.resx