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 | |
|---|---|
CancelTheEvent | Gets or sets whether the built-in "Navigation Pane Options" dialog is kept closed. |
Items | Gets 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; settrueto keep the dialog closed.
Items
public ArrayList Items
Gets or sets the bar's section buttons.
- Value
- An
ArrayListofBinaryPanelBarButtonobjects – a copy of the bar'sBinaryPanelBar.Items. Changing the list does not change the bar.