[]
C1Expander is a C1.WPF.C1HeaderedContentControl with a collapsible/expandable panel. The content is visible by clicking on the header.
[TemplatePart(Name = "ExpandButton", Type = typeof(ToggleButton))]
[TemplateVisualState(Name = "Expanded", GroupName = "ExpansionStates")]
[TemplateVisualState(Name = "Collapsed", GroupName = "ExpansionStates")]
[TemplateVisualState(Name = "Up", GroupName = "DirectionStates")]
[TemplateVisualState(Name = "Down", GroupName = "DirectionStates")]
[TemplateVisualState(Name = "Left", GroupName = "DirectionStates")]
[TemplateVisualState(Name = "Right", GroupName = "DirectionStates")]
public class C1Expander : C1HeaderedContentControl
| Name | Description |
|---|---|
| C1Expander() | Initializes a new instance of a C1Expander. |
| Name | Description |
|---|---|
| CornerRadiusProperty | Identifies the CornerRadius dependency property. |
| DisabledBrushProperty | Identifies the DisabledBrush dependency property. |
| ExpandDirectionProperty | Identifies the ExpandDirection dependency property. |
| ExpandedBackgroundProperty | Identifies the ExpandedBackground dependency property. |
| FocusBrushProperty | Identifies the FocusBrush dependency property. |
| IsExpandableProperty | Identifies the IsExpandable dependency property. |
| IsExpandedProperty | Identifies the IsExpanded dependency property. |
| MouseOverBrushProperty | Identifies the MouseOverBrush dependency property. |
| Name | Description |
|---|---|
| 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 expander expands. |
| ExpandedBackground | Gets or sets the Brush that will be used when the control is expanded. |
| FocusBrush | Gets or sets the Brush used to highlight the focused control. |
| IsExpandable | Gets or sets whether the expander can be expanded and collapsed. |
| IsExpanded | Gets or sets whether the expander content is visible. |
| MouseOverBrush | Gets or sets the Brush used to highlight the control when it has the mouse over. |
| Name | Description |
|---|---|
| ChangeVisualStateDirection(bool) | Updates the current visual state of the Direction visual state group to match the object's properties. |
| ChangeVisualStateExpansion(bool) | Updates the current visual state of the Expansion visual state group to match the object's properties. |
| OnApplyTemplate() | Builds the visual tree for the C1Expander control when a new template is applied. |
| OnCreateAutomationPeer() | Gets an AutomationPeer object used for testing the control. |
| Name | Description |
|---|---|
| IsExpandedChanged | Event raised when the IsExpanded property has changed. |
| IsExpandedChanging | Occurs before the C1Expander is expanded. |