[]
C1Expander is a C1.WPF.Core.C1HeaderedContentControl with a collapsible/expandable panel. The content is visible by clicking on the header.
[TemplatePart(Name = "ExpandButton", Type = typeof(ExpanderButton))]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "IconLeft", GroupName = "IconAlignmentStates")]
[TemplateVisualState(Name = "IconRight", GroupName = "IconAlignmentStates")]
[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 : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IDependencyObject, IDisposable
Name | Description |
---|---|
C1Expander() | Initializes a new instance of the C1Expander class. |
Name | Description |
---|---|
CornerRadiusProperty | Identifies the CornerRadius dependency property. |
DisabledBrushProperty | Identifies the DisabledBrush dependency property. |
ExpandDirectionProperty | Identifies the ExpandDirection dependency property. |
ExpandIconAlignmentProperty | Identifies the ExpandIconAlignment dependency property. |
ExpandIconStyleProperty | Identifies the ExpandIconStyle dependency property. |
ExpandIconTemplateProperty | Identifies the ExpandIconTemplate dependency property. |
ExpandedBackgroundProperty | Identifies the ExpandedBackground dependency property. |
FocusBrushProperty | Identifies the FocusBrush dependency property. |
HeaderProperty | Identifies the Header dependency property. |
HeaderStyleProperty | Identifies the HeaderStyle dependency property. |
HeaderTemplateProperty | Identifies the HeaderTemplate 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 whether the radius of the corners. |
DisabledBrush | Gets or sets the Brush used to highlight the control when is disabled. |
ExpandDirection | Gets or sets the direction the expander expands. |
ExpandIconAlignment | Gets or sets the alignment of the expand icon. |
ExpandIconStyle | Gets or sets the style applied to the expand icon. |
ExpandIconTemplate | Gets or sets the template of the expand icon. |
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. |
Header | Gets or sets the header. |
HeaderStyle | Gets or sets the style of the header. |
HeaderTemplate | Gets or sets the template of the header. |
IsDisposed | Gets whether this instance is disposed. |
IsExpandable | Gets or sets whether the expander can be expanded and collapsed. |
IsExpanded | Gets or sets whether the expander content is visible. |
IsFocused | Gets whether the control is focused. |
MouseOverBrush | Gets or sets the Brush used to highlight the control when it has the mouse over. |
Name | Description |
---|---|
ChangeVisualStateCommon(bool) | Updates the current visual state of the Common visual state group to match the object's properties. |
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. |
ChangeVisualStateIconAlignment(bool) | Updates the current visual state of the IconAlignment visual state group to match the object's properties. |
Dispose() | |
Dispose(bool) | |
Finalize() | Finalizes this instance of the C1Expander class. |
OnApplyTemplate() |
Name | Description |
---|---|
IsExpandedChanged | Event raised when the IsExpanded property has changed. |
IsExpandedChanging | Occurs before the C1Expander is expanded. |