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

Namespace:  C1.Silverlight.Extended
Assembly:  C1.Silverlight.Extended (in C1.Silverlight.Extended.dll)

Syntax

C#
[TemplateVisualStateAttribute(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualStateAttribute(Name = "Disabled", GroupName = "CommonStates")]
[StyleTypedPropertyAttribute(Property = "ItemStyle", StyleTargetType = typeof(C1AccordionItem))]
[TemplateVisualStateAttribute(Name = "MouseOver", GroupName = "CommonStates")]
public class C1Accordion : C1HeaderedItemsControl
Visual Basic
<TemplateVisualStateAttribute(Name := "Normal", GroupName := "CommonStates")> _
<TemplateVisualStateAttribute(Name := "Disabled", GroupName := "CommonStates")> _
<StyleTypedPropertyAttribute(Property := "ItemStyle", StyleTargetType := GetType(C1AccordionItem))> _
<TemplateVisualStateAttribute(Name := "MouseOver", GroupName := "CommonStates")> _
Public Class C1Accordion _
	Inherits C1HeaderedItemsControl

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..::..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