Represents an expandable and collapsible group box that hosts a collection of input controls.
Definition
public class ExpandableGroupBox : GroupBox
Summary
The following table summarizes the members exposed in this class.
Public Constructors
ExpandableGroupBox Constructor() | Initializes a new instance of the ExpandableGroupBox class. |
Public Properties
AllowExpandCollapse | Specifies whether the content element of this control can be expanded or collapsed. When set to false, the expander button will be collapsed. |
BorderThickness | |
EnableAnimation | Gets or sets a value indicating whether the animation should be applied when the IsExpanded property changes. |
ExpandCollapseMode | Gets or sets a value that determine the expand collapse mode. |
HeaderBackground | Gets or sets the brush to apply to the background of the header element. |
HeaderBorderBrush | Gets or sets the brush to apply to the border of the header element. |
HeaderLineBorder | Represents the brush used to draw the line border of the header element. |
HeaderLineEffect | Gets or sets the effect to apply to the header line element. |
HeaderPosition | Overridden. |
IsExpanded | Specifies whether this control should be displayed in expanded state. |
StrokeThickness | Not applicable. |
Fields
AllowExpandCollapseProperty | Identifies the AllowExpandCollapse dependency property. |
EnableAnimationProperty | Identifies the EnableAnimation dependency property. |
ExpandCollapseModeProperty | Identifies the ExpandCollapseMode dependency property. |
HeaderBackgroundProperty | Identifies the HeaderBackground dependency property. |
HeaderBorderBrushProperty | Identifies the HeaderBorderBrush dependency property. |
HeaderLineBorderProperty | Identifies HeaderLineBorder dependency property. |
HeaderLineEffectProperty | Identifies the HeaderLineEffect dependency property. |
IsExpandedProperty | Identifies the IsExpanded dependency property. |
Public Methods
DetachedEventHandlers() | |
OnApplyTemplate() | Builds the visual tree for the ExpandableGroupBox when a new template is applied. |
Protected Methods
OnIsExpandedChanged(DependencyPropertyChangedEventArgs) | Called when the IsExpanded property of the control changes. |
RefreshHeaderUI() | Overridden. |
UpdateExpanderButtonUI() | Called when the expander button needs to be updated due to property changes. |
Public Constructors
public ExpandableGroupBox()
Initializes a new instance of the ExpandableGroupBox class.
Public Properties
public bool AllowExpandCollapse { get; set; }
Specifies whether the content element of this control can be expanded or collapsed. When set to false, the expander button will be collapsed.
public Thickness BorderThickness { get; set; }
public bool EnableAnimation { get; set; }
Gets or sets a value indicating whether the animation should be applied when the IsExpanded property changes.
public ExpandCollapseMode ExpandCollapseMode { get; set; }
Gets or sets a value that determine the expand collapse mode.
public Brush HeaderBackground { get; set; }
Gets or sets the brush to apply to the background of the header element.
public Brush HeaderBorderBrush { get; set; }
Gets or sets the brush to apply to the border of the header element.
public Brush HeaderLineBorder { get; set; }
Represents the brush used to draw the line border of the header element.
public Effect HeaderLineEffect { get; set; }
Gets or sets the effect to apply to the header line element.
public HeaderPosition HeaderPosition { get; set; }
Overridden.
public bool IsExpanded { get; set; }
Specifies whether this control should be displayed in expanded state.
public Thickness StrokeThickness { get; set; }
Not applicable.
Fields
public static readonly DependencyProperty AllowExpandCollapseProperty
Identifies the AllowExpandCollapse dependency property.
public static readonly DependencyProperty EnableAnimationProperty
Identifies the EnableAnimation dependency property.
public static readonly DependencyProperty ExpandCollapseModeProperty
Identifies the ExpandCollapseMode dependency property.
public static readonly DependencyProperty HeaderBackgroundProperty
Identifies the HeaderBackground dependency property.
public static readonly DependencyProperty HeaderBorderBrushProperty
Identifies the HeaderBorderBrush dependency property.
public static readonly DependencyProperty HeaderLineBorderProperty
Identifies HeaderLineBorder dependency property.
public static readonly DependencyProperty HeaderLineEffectProperty
Identifies the HeaderLineEffect dependency property.
public static readonly DependencyProperty IsExpandedProperty
Identifies the IsExpanded dependency property.
Public Methods
public void DetachedEventHandlers()
public void OnApplyTemplate()
Builds the visual tree for the ExpandableGroupBox when a new template is applied.
Protected Methods
protected void OnIsExpandedChanged(DependencyPropertyChangedEventArgs e)
Called when the IsExpanded property of the control changes.
Parameters
e | The property changed event data. |
protected void RefreshHeaderUI()
Overridden.
protected void UpdateExpanderButtonUI()
Called when the expander button needs to be updated due to property changes.