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

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
    Syntax
    'Declaration
     
    
    Public Class C1Accordion 
       Inherits C1.Silverlight.C1HeaderedItemsControl
    public class C1Accordion : C1.Silverlight.C1HeaderedItemsControl 
    Remarks
    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 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

    System.Object
       System.Windows.DependencyObject
          System.Windows.UIElement
             System.Windows.FrameworkElement
                System.Windows.Controls.Control
                   System.Windows.Controls.ItemsControl
                      C1.Silverlight.C1ItemsControl
                         C1.Silverlight.C1HeaderedItemsControl
                            C1.Silverlight.Extended.C1Accordion

    See Also