ItemsControl that contains C1AccordionItem. It allows only one item to be expanded at a time (similar to the NavigationBar in Outlook).

Namespace:  C1.WPF.Extended
Assembly:  C1.WPF.Extended (in C1.WPF.Extended.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

C#
public class C1Accordion : C1HeaderedItemsControl
Visual Basic
Public Class C1Accordion _
	Inherits C1HeaderedItemsControl
XAML Object Element Usage
<C1Accordion .../>

Remarks

C1Accordion is an ItemsControl so items are added to the Items collection or a collection is set to ItemsSource. Either way, if a UIElement is added that is not a C1AccordionItem it is shown inside a C1AccordionItem as its Content. When using ItemTemplate the behavior is similar. If the template doesn't generate a C1AccordionItem, the generated element from the template is shown inside a C1AccordionItem. C1Accordion uses a Grid as its ItemsPanel. If ItemsPanel is set to a different Panel the layout won't work correctly.

Inheritance Hierarchy

System..::..Object
  System.Windows.Threading..::..DispatcherObject
    System.Windows..::..DependencyObject
      System.Windows.Media..::..Visual
        System.Windows..::..UIElement
          System.Windows..::..FrameworkElement
            System.Windows.Controls..::..Control
              System.Windows.Controls..::..ItemsControl
                C1ItemsControl
                  C1HeaderedItemsControl
                    C1.WPF.Extended..::..C1Accordion

See Also