Version

Creating and Setting Up a ThemePack Project

Because ThemePacks are compiled assemblies, you will need to create a Visual Studio® project in order to build the ThemePack. You will also need to add a few folders to help organize the necessary files.

  1. In Microsoft® Visual Studio 2008, on the main menu, click File, then New, then click Project…​ The New Project dialog box appears.

  1. In the New Project dialog box, expand Visual C# or Visual Basic in the Project types tree and select NET Framework 3.0 or higher.

  1. Select Custom Control Library (WPF) from the available templates.

  1. Name the template "MyThemePack," and select OK. Visual Studio generates a project.

  1. In the Solution Explorer, right click UserControl1.xaml and select Exclude from Project from the pop-up menu.

  1. In the Solution Explorer, add the following references:

    • InfragisticsWPF.DataPresenter.dll

    • InfragisticsWPF.Editors.dll

    • InfragisticsWPF.dll

  1. In the Solution Explorer, right click the project, click Add from the pop-up menu, then click New Folder. Name the folder "ResourceSets."

  1. Right click the ResourceSets folder and click Add from the pop-up menu, then click New Folder. Name the folder "DataPresenter."

  1. Repeat the previous step twice, adding two more folders to the ResourceSets folder. Name these two folders "Editors" and "Primitives."

  1. Your solution should look similar to the image below.

    solution explorer for creating and setting up a themepack project

    The next step is to add and configure a class for each style group. Creating a Style Group’s Class will guide you through this procedure.