In this step, you will begin in Visual Studio to create a WPF application using Accordion for WPF.
Complete the following steps:
-
In Visual Studio 2008, select File | New | Project.
-
In the New Project dialog box, select a language in the left pane, and in the templates list select WPF Application.
-
Enter a Name for your project and click OK.
-
Navigate to the Toolbox and double-click the C1Accordion icon to add the control to the project.
-
Right click the C1Accordion control to open its context menu and then select Properties.
The Properties window opens with the C1Accordion control's properties in focus.
Set the following properties.
-
Set the Height property to "250" to set the height of the control.
-
Set the Width property to "400" to set the width of the control.
-
Set the ExpandDirection property to Left so that the C1Accordion control will expand from the bottom rather than expanding from the top, which is its default.
-
Set the Fill property to True by selecting the Fill check box. This means that each pane will expand to fill the specified width of the C1Accordion control.
-
Set AllowCollapseAll to False by clearing the AllowCollapseAll check box. This will prevent users from collapsing all panes at the same time.
You have successfully created a WPF application containing a C1Accordion control. In the next step, you will customize the appearance and behavior of the C1Accordion control.