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 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
Methods
GetContainerForItemOverride()
Creates or identifies the element used to display a specified item.
protected override DependencyObject GetContainerForItemOverride()
Returns
- 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 | object | Specified item. |
Returns
- bool:
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 AutomationPeer object for this type.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
The 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 | SelectionChangedEventArgs | A SelectionChangedEventArgs that contains the event data. |
Fields
CanExpandMultipleProperty
Identifies the CanExpandMultiple dependency property. This field is read-only.
public static readonly DependencyProperty CanExpandMultipleProperty