HypernovaDesktop Components · docs
Binarymission
WinForms › Panel Bar › PanelBarAboutToCollapseOrExpandEventArgs

PanelBarAboutToCollapseOrExpandEventArgs

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.NavigationControls

Provides data for BinaryPanelBar.AboutToCollapseOrExpand, and lets the handler stop the bar collapsing or expanding.

public sealed class PanelBarAboutToCollapseOrExpandEventArgs : EventArgs

Inherits from / implements: EventArgs

Members at a glance

Properties
IsAboutToExpandGets or sets which way the bar is about to go.
ShouldCancelGets or sets whether to leave the bar as it is.

Properties

IsAboutToExpand

public bool IsAboutToExpand

Gets or sets which way the bar is about to go.

Value
true when the bar is collapsed and about to expand; false when it is about to collapse.

ShouldCancel

public bool ShouldCancel

Gets or sets whether to leave the bar as it is.

Value
Arrives as false; set true to cancel.