HypernovaDesktop Components · docs
Binarymission
WinForms › Panel Bar › BinaryPanelBarContainedPanel

BinaryPanelBarContainedPanel

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

The page of a BinaryPanelBarButton: a scrolling panel holding a section's controls, which the BinaryPanelBar shows while that button is selected.

public class BinaryPanelBarContainedPanel : Panel

Inherits from / implements: Panel

Remarks

Assign one to BinaryPanelBarButton.ContainedPanel. The bar docks it to fill the space above the buttons and hides it while another button is selected; while the bar is collapsed, it is shown in the flyout beside the rail. Use this class rather than a plain Panel for a page.

Examples

var calendarPage = new BinaryPanelBarContainedPanel();
calendarPage.Controls.Add(new MonthCalendar { Location = new Point(8, 8) });
calendarButton.ContainedPanel = calendarPage;

Members at a glance

Constructors
BinaryPanelBarContainedPanelInitialises a new, empty page with a white background and scrolling switched on.
Methods
DisposeReleases the resources the page uses.
InitializeComponentApplies the page's defaults: scrolling on, a white background and a size of 100 by 100 pixels.

Constructors

BinaryPanelBarContainedPanel

public BinaryPanelBarContainedPanel()

Initialises a new, empty page with a white background and scrolling switched on.

Methods

Dispose

protected override void Dispose(bool disposing)

Releases the resources the page uses.

Parameters
disposing
true to release managed resources as well as unmanaged ones.

InitializeComponent

public void InitializeComponent()

Applies the page's defaults: scrolling on, a white background and a size of 100 by 100 pixels.

Remarks

The constructor calls this; calling it again also attaches its internal resize handler a second time.