[]
ItemsControl that contains C1AccordionItem. It allows only one item to be expanded at a time (similar to the NavigationBar in Outlook).
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(C1AccordionItem))]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[StyleTypedProperty(Property = "ItemStyle", StyleTargetType = typeof(C1AccordionItem))]
public class C1Accordion : C1HeaderedItemsControl
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 C1.Silverlight.Extended.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.
| Name | Description |
|---|---|
| C1Accordion() | Initializes a new instance of a C1Accordion. |
| Name | Description |
|---|---|
| AllowCollapseAllProperty | Identifies the AllowCollapseAll dependency property. |
| CornerRadiusProperty | Identifies the CornerRadius dependency property. |
| DisabledBrushProperty | Identifies the DisabledBrush dependency property. |
| ExpandDirectionProperty | Identifies the ExpandDirection dependency property. |
| ExpandedBackgroundProperty | Identifies the ExpandedBackground dependency property. |
| FillProperty | Identifies the Fill dependency property. |
| FocusBrushProperty | Identifies the FocusBrush dependency property. |
| HeaderBackgroundProperty | Identifies the HeaderBackground dependency property. |
| HeaderFontFamilyProperty | Identifies the HeaderFontFamily dependency property. |
| HeaderFontSizeProperty | Identifies the HeaderFontSize dependency property. |
| HeaderFontStretchProperty | Identifies the HeaderFontStretch dependency property. |
| HeaderFontStyleProperty | Identifies the HeaderFontStyle dependency property. |
| HeaderFontWeightProperty | Identifies the HeaderFontWeight dependency property. |
| HeaderForegroundProperty | Identifies the HeaderForeground dependency property. |
| HeaderPaddingProperty | Identifies the HeaderPadding dependency property. |
| HorizontalHeaderAlignmentProperty | Identifies the HorizontalHeaderAlignment dependency property. |
| ItemStyleProperty | Identifies the ItemStyle dependency property. |
| MouseOverBrushProperty | Identifies the MouseOverBrush dependency property. |
| VerticalHeaderAlignmentProperty | Identifies the VerticalHeaderAlignment dependency property. |
| Name | Description |
|---|---|
| AllowCollapseAll | Gets or sets whether the accordion allows the user to collapse all items. |
| CornerRadius | Gets or sets a value that represents the degree to which the corners of the element are rounded. |
| DisabledBrush | Gets or sets the Brush used to highlight the control when is disabled. |
| ExpandDirection | Gets or sets the direction the contained C1AccordionItems expands. |
| ExpandedBackground | Gets or sets the Brush that will be used when the control is expanded. |
| ExpandedItem | Gets the currently expanded item or null if no item is expanded. |
| Fill | Gets or sets whether the expanded item should fill the remaining space in the control. |
| FocusBrush | Gets or sets the Brush used to highlight the focused control. |
| HeaderBackground | Gets or sets the background brush of the header. |
| HeaderFontFamily | Gets or sets the font family of the header. |
| HeaderFontSize | Gets or sets the font size of the header. |
| HeaderFontStretch | Gets or sets the font stretch of the header. |
| HeaderFontStyle | Gets or sets the font style of the header. |
| HeaderFontWeight | Gets or sets the font weight of the header. |
| HeaderForeground | Gets or sets the foreground brush of the header. |
| HeaderPadding | Gets or sets the padding of the header. |
| HorizontalHeaderAlignment | Gets or sets the HorizontalContentAlignment of the header. |
| ItemStyle | Gets or sets the Style that is applied to each C1AccordionItem. |
| MouseOverBrush | Gets or sets the Brush used to highlight the control when it has the mouse over. |
| Panel | Gets the panel associated with this items control. |
| VerticalHeaderAlignment | Gets or sets the VerticalContentAlignment of the header. |
| Name | Description |
|---|---|
| ChangeVisualStateCommon(bool) | Updates the current visual state of the Common visual state group to match the object's properties. |
| ClearContainerForItemOverride(DependencyObject, object) | |
| GetContainerForItemOverride() | |
| IsItemItsOwnContainerOverride(object) | |
| OnApplyTemplate() | Builds the visual tree for the C1Accordion control when a new template is applied. |
| OnCreateAutomationPeer() | Gets an AutomationPeer object used for testing the control. |
| OnPropertyChanged(DependencyPropertyChangedEventArgs) | Invoked whenever the effective value of any dependency property has been updated. |
| PrepareContainerForItemOverride(DependencyObject, object) |
| Name | Description |
|---|---|
| IsItemExpandedChanged | Occurs when an item is expanded or collapsed. |
| IsMouseOverChanged | Event raised when the IsMouseOver property has changed. |