Create WPF application

28 Jun 20214 minutes to read

Syncfusion provides the Visual Studio Project Templates for the Syncfusion WPF platform to create the Syncfusion WPF Application by adding the required Syncfusion assemblies and XMAL.

IMPORTANT

The Syncfusion WPF templates are available from v16.1.0.24.

Use the following steps to create the Syncfusion WPF project through the Visual Studio Project Template.

Before use the Syncfusion WPF Project Template, check whether the WPF Extensions - Syncfusion installed or not in Visual Studio Extension Manager by clicking on the Tools -> Extensions and Updates -> Installed for Visual Studio 2017 or lower and for Visual Studio 2019 by clicking on the Extensions -> Manage Extensions -> Installed.

  1. To create a Syncfusion WPF project, follow either one of the options below:

    Option 1:
    Click Extensions >Syncfusion Menu and choose Essential Studio for WPF > Create New Syncfusion Project… in Visual Studio.

    Choose Syncfusion WPF Application from Visual Studio new project dialog via Syncfusion menu

    NOTE

    In Visual Studio 2017 or lower, the Syncfusion menu is available in the Visual Studio menu.

    Option 2:
    Choose File -> New -> Project. Opens a new dialog to create a new project. You can obtain the templates provided by Syncfusion for WPF by filtering the project type with Syncfusion or by using the Syncfusion keyword in the search option.

    Choose Syncfusion WPF Application from Visual Studio new project dialog

    In Visual Studio 2017 or lower, Select File > New > Project and navigate to Syncfusion > Windows > Syncfusion WPF Application in Visual Studio.

    Choose Syncfusion WPF Application from Visual Studio new project dialog

  2. Name the Project, choose the destination location when required, and set the Framework of the project, then click OK.

    NOTE

    Minimum target Framework is 4.0 for Syncfusion WPF project templates.

  3. Choose the options to configure the Syncfusion WPF Application by using the following Project Configuration Wizard.

    Syncfusion WPF project configuration wizard

    In Visual Studio 2017 or lower, Syncfusion WPF Application project configuration wizard

    Syncfusion WPF project configuration wizard

    Project Configurations

    Project Type: Select the project type, either .Net 5.0, .Net Core 3.1 or .Net Framework.

    NOTE

    Project type selection option will be available only in Visual Studio 2019 Syncfusion WPF Project template configuration. The .Net Core 3.1 and .Net 5.0 option will be listed in project type only when the .Net Core 3.0 and .Net 5.0 setup has been installed.

    Language: Select the language, either CSharp or VB.

    NOTE

    C# language is available only when you choose .NET Core 3.1 or .Net 5.0 from project type option in Visual Studio 2019.

    Choose Theme: Choose the required theme.

    Reference From: Choose the assembly location, from where the assembly is added to the project.

    NOTE

    Installed location and GAC option will be available only when the Syncfusion Essential WPF setup has been installed. You can use NuGet option without installing the Syncfusion Essential WPF setup. Also, the GAC option will not be available when you choose .Net Core 3.1 and .Net 5.0 from project type option in Visual Studio 2019.

    Installed ES Build Version: Choose the build version to add the corresponding version assemblies to the project.

    NOTE

    Installed ES build version option will be available only when you install the Syncfusion Essential WPF setup and choose the assembly location as Installed Location or GAC.

    Size Mode: Choose the Size Mode either Default or Touch.

    Select Window: Choose the window as required for application.

  4. After the Project Configuration Wizard is done, the Syncfusion WPF project is created with required references and XAML.

    Syncfusion WPF project created with required Syncfusion WPF assemblies

    Syncfusion WPF project created with required Syncfusion XAML files

    Syncfusion WPF project created with readme

  5. Then, the Syncfusion licensing registration required message box will be shown, if you installed the trial setup or NuGet packages since Syncfusion introduced the licensing system from 2018 Volume 2 (v16.2.0.41) Essential Studio release. Navigate to the help topic, which is shown in the licensing message box to generate and register the Syncfusion license key to your project. Refer to this blog post to learn more about the licensing changes introduced in Essential Studio.

    Syncfusion license registration required information dialog in Syncfusion WPF project