ComponentOne Scheduler for WPF: ComponentOne Scheduler for WPF Overview > Adding the Scheduler for WPF Components to a Visual Studio Project

Adding the Scheduler for WPF Components to a Visual Studio Project

When you install Scheduler for WPF, the C1Scheduler control should be added to your Visual Studio Toolbox. You can also manually add ComponentOne controls to the Toolbox.

ComponentOne Scheduler for WPF provides the following control:

      C1Scheduler

To use Scheduler for WPF, add this control to the window or add a reference to the C1.WPF.C1Schedule assembly to your project.

Manually Adding Scheduler for WPF to the Toolbox

When you install Scheduler for WPF , the following Scheduler for WPF component will appear in the Visual Studio Toolbox customization dialog box:

      C1Scheduler

To manually add the C1Scheduler control to the Visual Studio Toolbox, complete the following steps:

1.   Open the Visual Studio IDE (Microsoft Development Environment). Make sure the Toolbox is visible (select Toolbox in the View menu, if necessary) and right-click the Toolbox to open its context menu.

2.   To make the C1Scheduler component appear on its own tab in the Toolbox, select Add Tab from the context menu and type in the tab name, C1Scheduler, for example.

3.   Right-click the tab where the component is to appear and select Choose Items from the context menu. The Choose Toolbox Items dialog box opens.

4.   In the dialog box, select the WPF Components tab. Sort the list by Namespace (click the Namespace column header) and select the check boxes for all components belonging to the C1.WPF.C1Schedule namespace. Note that there may be more than one component for each namespace.

Adding C1Scheduler to the Window

To add C1Scheduler to a window or page, complete the following steps:

1.   Add the C1Scheduler control to the Visual Studio Toolbox.

2.   Double-click C1Scheduler or drag the control onto the window.

Adding a Reference to the Assembly

To add a reference to the C1.WPF.C1Schedule assembly, complete the following steps:

1.   Select the Add Reference option from the Project menu of your project.

2.   Select the ComponentOne WPF Scheduler assembly from the list on the .NET tab or on the Browse tab, browse to find the C1.WPF.C1Schedule.dll assembly and click OK.

3.   Double-click the window caption area to open the code window. At the top of the file, add the following Imports statements (using in C#):

Imports C1.WPF.C1Schedule

This makes the objects defined in the C1.WPF.C1Schedule assembly visible to the project.


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.