In This Article

ExpanderBar Class

Provides abstract base expander pane container management functionality.

public abstract class ExpanderBar : Selector
Inheritance:
object Visual UIElement FrameworkElement Control ItemsControl Selector object
Derived:
ExplorerBar NavigationBar

Constructors

ExpanderBar()

Initializes an instance of the class.

protected ExpanderBar()

Properties

CanExpandMultiple

Indicates whether multiple child Expander objects can be expanded at any given time.

public bool CanExpandMultiple { get; set; }

Property Value

bool:

true if multiple child Expander objects can be expanded at any given time; otherwise, false. The default value is true.

Methods

GetContainerForItemOverride()

Creates or identifies the element that is used to display the given item.

protected override DependencyObject GetContainerForItemOverride()

Returns

DependencyObject:

The element that is used to display the given item.

InitializeSelection()

Initializes the selection after a template is applied.

protected virtual void InitializeSelection()

IsItemItsOwnContainerOverride(object)

Determines if the specified item is (or is eligible to be) its own container.

protected override bool IsItemItsOwnContainerOverride(object item)
Parameter Type Description
item object

The item to check.

Returns

bool:

true if the item is (or is eligible to be) its own container; otherwise, false.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer? OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

OnSelectionChanged(SelectionChangedEventArgs)

Called when the selection changes.

protected override void OnSelectionChanged(SelectionChangedEventArgs e)
Parameter Type Description
e SelectionChangedEventArgs

The event data.

Fields

CanExpandMultipleProperty

Defines the CanExpandMultiple property.

public static readonly DependencyProperty CanExpandMultipleProperty

Extension Methods