WPF Layout Controls | ComponentOne
C1.WPF.Accordion Namespace / C1Accordion Class
Members

In This Topic
    C1Accordion Class
    In This Topic
    System.Windows.Controls.ItemsControl that contains C1Expander. It allows only one item to be expanded at a time (similar to the NavigationBar in Outlook).
    Object Model
    C1Accordion Class
    Syntax
    'Declaration
     
    
    <StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=C1.WPF.Accordion.C1Expander)>
    <DefaultEventAttribute("OnItemsChanged")>
    <DefaultPropertyAttribute("Items")>
    <LocalizabilityAttribute(LocalizationCategory.None, Readability=Readability.Unreadable)>
    <ContentPropertyAttribute("Items")>
    <RuntimeNamePropertyAttribute("Name")>
    <UsableDuringInitializationAttribute(True)>
    <XmlLangPropertyAttribute("Language")>
    <UidPropertyAttribute("Uid")>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class C1Accordion 
       Inherits C1.WPF.Core.C1HeaderedItemsControl
    [StyleTypedProperty(Property="ItemContainerStyle", StyleTargetType=C1.WPF.Accordion.C1Expander)]
    [DefaultEvent("OnItemsChanged")]
    [DefaultProperty("Items")]
    [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)]
    [ContentProperty("Items")]
    [RuntimeNameProperty("Name")]
    [UsableDuringInitialization(true)]
    [XmlLangProperty("Language")]
    [UidProperty("Uid")]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class C1Accordion : C1.WPF.Core.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 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

    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
                            C1.WPF.Core.C1ItemsControl
                               C1.WPF.Core.C1HeaderedItemsControl
                                  C1.WPF.Accordion.C1Accordion

    See Also