Extended Library for WPF and Silverlight | ComponentOne
C1.WPF.Extended Namespace / C1Accordion Class

In This Topic
    C1Accordion Class
    In This Topic
    System.Windows.Controls.ItemsControl that contains C1AccordionItem. It allows only one item to be expanded at a time (similar to the NavigationBar in Outlook).
    Object Model
    C1Accordion Class
    Public Class C1Accordion 
       Inherits C1.WPF.C1HeaderedItemsControl
    public class C1Accordion : C1.WPF.C1HeaderedItemsControl 
    C1Accordion is an System.Windows.Controls.ItemsControl so items are added to the System.Windows.Controls.ItemsControl.Items collection or a collection is set to System.Windows.Controls.ItemsControl.ItemsSource. Either way, if a UIElement is added that is not a C1.Silverlight.Extended.C1AccordionItem it is shown inside a C1AccordionItem as its Content. When using System.Windows.Controls.ItemsControl.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 System.Windows.Controls.ItemsControl.ItemsPanel is set to a different Panel the layout won't work correctly.
    Inheritance Hierarchy


    See Also