HypernovaDesktop Components · docs
Binarymission
WinForms › Panel Bar › PanelBarNavigationOptions

PanelBarNavigationOptions

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

Carries the data of BinaryPanelBar.ContextMenuShowNavigationPaneOptionsClicked: the bar's buttons, and whether to keep the built-in options dialog closed.

public sealed class PanelBarNavigationOptions

Examples

navigation.ContextMenuShowNavigationPaneOptionsClicked += (object sender, ref PanelBarNavigationOptions options) =>
{
    options.CancelTheEvent = true;                  // show our own dialog instead
    using (var dialog = new SectionsDialog(options.Items))   // a form of your own
        dialog.ShowDialog(this);
};

Members at a glance

Properties
CancelTheEventGets or sets whether the built-in "Navigation Pane Options" dialog is kept closed.
ItemsGets or sets the bar's section buttons.

Properties

CancelTheEvent

public bool CancelTheEvent

Gets or sets whether the built-in "Navigation Pane Options" dialog is kept closed.

Value
Arrives as false; set true to keep the dialog closed.

Items

public ArrayList Items

Gets or sets the bar's section buttons.

Value
An ArrayList of BinaryPanelBarButton objects – a copy of the bar's BinaryPanelBar.Items. Changing the list does not change the bar.