Adding Accordion Panes to the C1Accordion Control

In this topic, you will add an accordion pane to a C1Accordion control in Blend, in XAML, and in code.

At Design Time in Blend

To add a pane to the C1Accordion control, complete the following steps:

1.   Click the C1Accordion control once to select it.

2.   Under the Assets tab, double-click the C1AccordionItem icon.

An accordion pane is added to the C1Accordion control.

3.   Click the C1AccordionItem item once to select it.

4.   Under the Properties panel, set the Width property to "150".

In XAML

To add a pane to the C1Accordion control, place the following markup between the <c1:C1Accordion> and </c1:C1Accordion> tags:

<c1:C1AccordionItem Content="C1AccordionItem" Width="150">

</c1:C1AccordionItem>

In Code

To add accordion panes in code, complete the following steps:

1.   Add x:Name="C1Accordion1" to the <c1:C1Accordion> tag so that the object will have a unique identifier for you to call in code.

2.   Enter Code view and import the following namespace:

      Visual Basic

      C#

3.   Add the following code beneath the InitializeComponent() method:

      Visual Basic

      C#

4.   Run the program.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.