In This Article

ExpanderBar Class

Provides abstract base expander pane container management functionality.

public abstract class ExpanderBar : Selector, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IGeneratorHost, IContainItemStorage
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control System.Windows.Controls.ItemsControl System.Windows.Controls.Primitives.Selector Object
Derived:
ExplorerBar NavigationBar

Constructors

ExpanderBar()

Initializes a new instance of the ExpanderBar class.

protected ExpanderBar()

Properties

CanExpandMultiple

Gets or sets whether multiple child Expander objects can be expanded at any given time.

public bool CanExpandMultiple { get; set; }

Property Value

System.Boolean:

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 used to display a specified item.

protected override DependencyObject GetContainerForItemOverride()

Returns

System.Windows.DependencyObject:

A Expander.

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 item container.

protected override bool IsItemItsOwnContainerOverride(object item)
Parameter Type Description
item System.Object

Specified item.

Returns

System.Boolean:

true if the item is its own item container; otherwise, false.

OnApplyTemplate()

Invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

OnCreateAutomationPeer()

Creates and returns an System.Windows.Automation.Peers.AutomationPeer object for this type.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

System.Windows.Automation.Peers.AutomationPeer:

The System.Windows.Automation.Peers.AutomationPeer that was created.

OnSelectionChanged(SelectionChangedEventArgs)

Responds to a selection change by raising a SelectionChanged event.

protected override void OnSelectionChanged(SelectionChangedEventArgs e)
Parameter Type Description
e System.Windows.Controls.SelectionChangedEventArgs

A System.Windows.Controls.SelectionChangedEventArgs that contains the event data.

Fields

CanExpandMultipleProperty

Identifies the CanExpandMultiple dependency property. This field is read-only.

public static readonly DependencyProperty CanExpandMultipleProperty

Inherited Members

  • System.Object.ToString()
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object, System.Object)
  • System.Object.ReferenceEquals(System.Object, System.Object)
  • System.Object.GetHashCode()
  • System.Object.GetType()
  • System.Object.MemberwiseClone()

Extension Methods