Table of Contents

Class ExpanderButton

Namespace
UICatalog.Scenarios
Assembly
UICatalog.dll

A Button that can expand or collapse a view.

public class ExpanderButton : Button, IDisposable, ISupportInitializeNotification, ISupportInitialize, IDesignable
Inheritance
ExpanderButton
Implements
Inherited Members
Extension Methods

Examples

private void MyView_Initialized (object sender, EventArgs e) { Border.Add(new ExpanderButton ()); ...

Remarks

Add this button to a view's Border to allow the user to expand or collapse the view via either the keyboard (F4) or mouse.

If Orientation is set to Vertical, the button will appear at the top/right. If Orientation is set to Horizontal, the button will appear at the bottom/left.

Constructors

ExpanderButton()

Properties

CollapseGlyph

The glyph that indicates the button will collapse the view.

Collapsed

Gets or sets a value indicating whether the view is collapsed.

ExpandGlyph

The glyph that indicates the button will expand the view.

Orientation

Orientation.

Methods

OnCollapsedChanging(bool)

Called when the orientation is changing. Invokes the OrientationChanging event.

OnOrientationChanging(Orientation)

Called when the orientation is changing. Invokes the OrientationChanging event.

Toggle()

Collapses or Expands the view.

Events

CollapsedChanging

Fired when the orientation has changed. Can be cancelled.

OrientationChanging

Fired when the orientation has changed. Can be cancelled.