Creating a WPF Project in Visual Studio > Adding the WPF Edition Components |
When you install WPF Edition the WPF controls should be added to your Visual Studio Toolbox. You can also manually add ComponentOne controls to the Toolbox.
WPF Edition provides several controls. To use a WPF Edition panel or control, add it to the window or add a reference to the required C1.WPF assembly to your project (for example, C1.WPF.DataGrid.dll).
Manually Adding WPF Edition controls to the Toolbox
When you install the WPF Edition, several controls and panels will appear in the Visual Studio Toolbox customization dialog box.
To manually add the WPF Edition controls to the Visual Studio Toolbox, complete the following steps:
The Choose Toolbox Items dialog box opens.
Adding WPF Edition controls to the Window
To add WPF Edition controls to a window or page, complete the following steps:
Adding a Reference to the Assembly
To add a reference to the WPF Edition assemblies, complete the following steps:
C# |
Copy Code
|
---|---|
using C1.WPF; using C1.WPF.ProductName; |
This makes the objects defined in the WPF Edition assembly visible to the project. Note that in the steps above, replace "ProductName" with the correct assembly name, for instance "Extended" or "DataGrid".