Item Template Extension
11 Feb 20224 minutes to read
The Syncfusion Item Templates extensions provides support to add a predefined form for the Windows Forms applications.
IMPORTANT
The Syncfusion Windows Forms item templates are available from v13.1.0.21.
Using Syncfusion Item Template Gallery
Follow the given steps to add the Syncfusion item in Visual Studio.
Before use the Syncfusion WinForms Item Template, check whether the WinForms 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.If this extension not installed, please install the extension by follow the steps from the download and installation help topic.
- Open a new or existing WinForms application.
-
Right-click the WinForms Project from the Solution Explorer. Select the Add Syncfusion Item New Item… option.
-
Now, the Syncfusion Item Template Gallery window will be open.
-
Select the required assembly location, version, and Form from the Syncfusion Item Template Gallery.
Assembly From: Choose an assembly reference option such as GAC location, Essential Studio installed location, or NuGet packages, to specify where from the required Syncfusion assemblies are added to the project.
NOTE
Installed location and GAC option will be available only when the Syncfusion Essential WinForms setup has been installed. You can use NuGet option without installing the Syncfusion Essential Windows Forms setup. If you add the Syncfusion item files in .NET Core Windows Forms application, GAC option will not be listed in the Assembly From option.
Version: Choose the Essential Studio version to add the corresponding version assemblies to the project.
NOTE
Version option will be available only when you install the Syncfusion Essential Windows Forms setup and choose the assembly location as Installed Location or GAC.
Template Gallery: This part contains a set of Syncfusion Item Templates, and you can choose the Item Templates as required. When the Add button is clicked, the selected item template is added to the project.
-
Then, 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 for understanding the licensing changes introduced in Essential Studio.
Using Visual Studio Add new Item
Syncfusion Project Template can also be added from the Visual Studio Item Template.
-
To create a Syncfusion WinForms item template, follow either one of the options below:
Option 1
Click Syncfusion Menu and choose Essential Studio for WinForms > Add Office2010Form… or any other Form in Visual Studio.NOTE
From Visual Studio 2019, Syncfusion menu is available under Extensions in Visual Studio menu.
Option 2
Right-click the Windows Forms Project, select Add > New Item, and then navigate to Visual C# Items or VB Items > Syncfusion > Windows. Refer to the following screenshot for more information. -
The Syncfusion Item Templates are available under the Syncfusion tab. It is available for both C# Items and VB Items.
-
Now the selected template is added to the project along with Syncfusion references.
-
Then, 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 for understanding the licensing changes introduced in Essential Studio.