C1Expander is a C1HeaderedContentControl with a collapsible/expandable panel. The content is visible by clicking on the header.

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

Syntax

C#
[TemplateVisualStateAttribute(Name = "Expanded", GroupName = "ExpansionStates")]
[TemplateVisualStateAttribute(Name = "Right", GroupName = "DirectionStates")]
[TemplateVisualStateAttribute(Name = "Collapsed", GroupName = "ExpansionStates")]
[TemplateVisualStateAttribute(Name = "Up", GroupName = "DirectionStates")]
[TemplateVisualStateAttribute(Name = "Down", GroupName = "DirectionStates")]
[TemplateVisualStateAttribute(Name = "Left", GroupName = "DirectionStates")]
[TemplatePartAttribute(Name = "ExpandButton", Type = typeof(ToggleButton))]
public class C1Expander : C1HeaderedContentControl
Visual Basic
<TemplateVisualStateAttribute(Name := "Expanded", GroupName := "ExpansionStates")> _
<TemplateVisualStateAttribute(Name := "Right", GroupName := "DirectionStates")> _
<TemplateVisualStateAttribute(Name := "Collapsed", GroupName := "ExpansionStates")> _
<TemplateVisualStateAttribute(Name := "Up", GroupName := "DirectionStates")> _
<TemplateVisualStateAttribute(Name := "Down", GroupName := "DirectionStates")> _
<TemplateVisualStateAttribute(Name := "Left", GroupName := "DirectionStates")> _
<TemplatePartAttribute(Name := "ExpandButton", Type := GetType(ToggleButton))> _
Public Class C1Expander _
	Inherits C1HeaderedContentControl

Inheritance Hierarchy

System..::..Object
  System.Windows..::..DependencyObject
    System.Windows..::..UIElement
      System.Windows..::..FrameworkElement
        System.Windows.Controls..::..Control
          System.Windows.Controls..::..ContentControl
            C1.Silverlight..::..C1HeaderedContentControl
              C1.Silverlight.Extended..::..C1Expander
                C1.Silverlight.Extended..::..C1AccordionItem

See Also