HypernovaDesktop Components · docs
Binarymission
WinFormsPanel Bar › BinaryPanelBar

BinaryPanelBar

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

BinaryPanelBar control class - An extended UserControl class that mimics the MS Outlook (C) style Navigation/Side-bar control.

public partial class BinaryPanelBar : UserControl

Inherits from / implements: UserControl

Remarks

BinaryPanelBar control class - An extended UserControl class that mimics the MS Outlook (C) style Navigation/Side-bar control.

Members at a glance

BinaryPanelBarCreates a new instance of BinaryPanelBar control object.
AddShowNavigationOptionsMenuItemGets or sets whether to show the "Show Navigation Panel Options..." content menu item.
AddShowNavigationOptionsMenuResourceProviderInstanceGets or sets the add show navigation options menu resource provider instance.
BorderStyleProvides a new implementation for BorderStyle for this control.
ButtonBorderStyleGets or sets the border style for all of the BinaryPanelBarButton objects that are currently hosted in this instance of BinaryPanelBar control.
ButtonHoverEndColorGets or sets the gradient end colour drawn on a button the pointer is over.
ButtonHoverSelectedEndColorGets or sets the gradient end colour drawn when the pointer is over the selected button.
ButtonHoverSelectedStartColorGets or sets the gradient start colour drawn when the pointer is over the selected button.
ButtonHoverStartColorGets or sets the gradient start colour drawn on a button the pointer is over.
ButtonSelectedEndColorGets or sets the gradient end colour drawn on the selected button.
ButtonSelectedStartColorGets or sets the gradient start colour drawn on the selected button.
CollapseExpandButtonColorGets or sets the color of the Collapse/expand button.
ContextMenuChevronColorGets or sets the control's context menu button's chevron drawing color.
ControlBorderStyleGets or sets the control's border style.
ControlInCollapsedModeGets or sets whether the bar is collapsed to a narrow rail at its docked edge.
CurrentlySelectedButtonGets the currently selected/activated BinaryPanelBarButton.
CustomChevronImageGets or sets the custom Bitmap object for the control's chevron (i.e. the context menu button) image.
CustomImageTransparentColorGets or sets a transparency color for the custom image that is set in the control's property CustomChevronImage.
EndColorGets or sets the end color value to be used to draw the control's button objects when the control's XPThemeToEmulate value is set to None.
GripperColorGets or sets the gripper color.
GripperHeightGets or sets the control's gripper handle height.
HowManyPanelButtonsToShowGets or sets the number of BinaryPanelBarButton objects to display in this instance of BinaryPanelBar control.
ItemColorRenderingStyleGets or sets the rendering style for drawing the menu item selection rectangle area.
ItemsGets the list of all BinaryPanelBarButton objects that are currently hosted in this instance of BinaryPanelBar control.
LeftMarginForDrawingMainHeaderTextGets or sets the left margin, when drawing the control's main header text.
MainHeaderHeightGets or sets the height of the control's main header strip, in logical (96 DPI) units.
MainHeaderTextColorGets or sets the the color for drawing the control's main header text.
MainHeaderTextFontGets or sets the Font to be used, when drawing the control's main header text.
MenuItemAvailableButtonCheckedStateBorderColorGets or sets the border color for the available button's image checked state, in the context menu / chevron menu system in the control.
MenuItemSelectionBackgroundColorGets or sets the selection background color for the menu item in the context menu / chevron menu system in the control.
PanelBarButtonsThe panel bar's buttons, gathered from its child controls. The list is built on each read, so it is a snapshot rather than a live view.
PanelBarWindowFillColorWhenInCollapsedModeAndTheContainedPanelIsShowingGets or sets the fill color for the panel window, when the control is in collapsed mode and the contained panel for the current active panel window is showing .
PanelBarWindowFillColorWhenInCollpasedModeGets or sets the fill color for the panel window, when the control is in collapsed mode.
PanelBarWindowTextColorWhenInCollpasedModeGets or sets the fore color for the panel text that will be displayed, when the control is in the collapsed panel mode.
PanelTextGets or sets the text for the control's main heading area.
PanelWindowTextFontWhenInCollapsedModeGets or sets the font for the text that will be displayed in the collapsed panel window
PanelWindowTextWhenGripperIsOnMoveGets or sets the text that will be displayed in the panel window, when the control is in collapsed mode and when the user is moving the gripper handle up/down.
ReflectCurrentXPThemeColorOnLoadGets or sets whether the control should paint itself based on the current active XP theme.
RenderInOutlookStyleExpandCollapseModeGets or sets whether to switch on / off the Outlook style expand/collapsing feature.
SelectedButtonGets the currently selected BinaryPanelBarButton object.
ShouldAutoResetFocusToControlAfterPopupWindowHideGets or sets whether the control should automatically set the focus to itself soon after the user has hidden / dismissed the pop-up window when in collapsed mode.
SizeProvides a newer implementation.
StartColorGets or sets the start color value to be used to draw the control's button objects when the control's XPThemeToEmulate value is set to None.
TopMarginForDrawingMainHeaderTextGets or sets the top margin, when drawing the control's main header text.
UpdateWhenSystemColorsChangesGets or sets whether the control needs to repaint itself when the SystemColorsChanged event is raised.
UseSolidBrushWhenPaintingButtonsGets or sets whether to use a SolidBrush to paint the control and its button objects when the control's XPThemeToEmulate property is set to None value and valid start and end colors have been set.
WirePanelBarButtonClickEventToBaseBarButtonGets or sets whether any click event handler that you have attached to the BinaryPanelBarButton object should be wired into the small / minimized "related" button (that sits in the base bar) click event.
XPThemeToEmulateGets or sets the XPTheme to be emulated when drawing this instance of the control.
AddBinaryPanelBarButtonA helper method to add a BinaryPanelBarButton object into this control's instance.
DeSelectBinaryPanelBarButtonA helper method to deselect a particular (existing) BinaryPanelBarButton object from this control's instance.
DeSelectBinaryPanelBarButtonA helper method to deselect a particular (existing) BinaryPanelBarButton object from this control's instance.
DisposeRefer the base class documentation for this method.
GetPanelButtonAtA helper method to get an instance of BinaryPanelBarButton that is located at the specified coordinates.
ItemAtGets the instance of the BinaryPanelBarButton object that is at a specified index position in the collection of objects in this instance of BinaryPanelBar control.
MakeAvailableAllBinaryPanelBarButtonObjectsA helper method to "make available for use" all of the BinaryPanelBarButton objects that are currently in this instance of BinaryPanelBar control.
MakeAvailableForUseOnlyTheSpecifiedBinaryPanelBarButtonsA helper method to "make available for use", only a certain BinaryPanelBarButton objects.
MakeUnAvailableAllBinaryPanelBarButtonObjectsA helper method to "make unavailable for use" all of the BinaryPanelBarButton objects that are currently in this instance of BinaryPanelBar control.
MoveDownByOneIndexTheSpecifiedBinaryPanelBarButtonObjectA helper method to move down in index, by one level, of the particular BinaryPanelBarButton object that is currently in the list of controls hosted by this instance of BinaryPanelBar control.
MoveUpByOneIndexTheSpecifiedBinaryPanelBarButtonObjectA helper method to move up in index, by one level, of the particular BinaryPanelBarButton object that is currently in the list of controls hosted by this instance of BinaryPanelBar control.
OnDockChangedRaises the DockChanged event. BinaryPanelBar overrides it so the control's own handling runs alongside the base behavior.
OnHandleCreatedRefer to base class documentation.
OnMouseDownRefer the base class documentation for this method.
OnPaintRefer the base class documentation for this method.
OnResizeRefer the base class documentation for this method.
OnSizeChangedRaises the SizeChanged event. BinaryPanelBar overrides it so the control's own handling runs alongside the base behavior.
OnSystemColorsChangedRefer to base class documentation.
RemoveBinaryPanelBarButtonA helper method to remove a particular (existing) BinaryPanelBarButton object from this control's instance.
RemoveBinaryPanelBarButtonA helper method to remove a particular (existing) BinaryPanelBarButton object from this control's instance.
ResetAvailabilityStatusOfThePanelBarButtonObjectA helper method to reset the "availability for use" of a specified BinaryPanelBar object.
ResetIndexForTheSpecifiedBinaryPanelBarButtonObjectA helper method to reset the index of a particular BinaryPanelBarButton object.
SelectBinaryPanelBarButtonA helper method to select a particular (existing) BinaryPanelBarButton object in this control's instance.
SelectBinaryPanelBarButtonA helper method to select a particular (existing) BinaryPanelBarButton object in this control's instance.
ShowSpecifiedBinaryPanelBarButtonsInMainViewListA helper method to "make visible" a specific set of BinaryPanelBarButton objects that are currently in this instance of BinaryPanelBar control.
AboutToCollapseOrExpandOccurs when the control is about to collapse or expand.
BinaryPanelBarButtonClickedThis event is raised when a particular instance of BinaryPanelBarButton object is clicked.
BinaryPanelBarButtonContainedPanelAppliedOrChangedThis event is raised when a particular instance of BinaryPanelBarButton object's associated BinaryPanelBarContainedPanel object is changed via changing the ContainedPanel property.
BinaryPanelBarButtonImageChangedThis event is raised when a particular instance of BinaryPanelBarButton object's image is changed.
BinaryPanelBarButtonNotAvailableForUseChangedThis event is raised when a particular instance of BinaryPanelBarButton object is made unavailable for use (either by the user or programmatic).
BinaryPanelBarButtonNotAvailableForUseChangingThis event is raised when a particular instance of BinaryPanelBarButton object is about to be made unavailable for use (either by the user or programmatic).
BinaryPanelBarButtonTextChangedThis event is raised when a particular instance of BinaryPanelBarButton object's text is changed.
BinaryPanelBarButtonVisibleChangedThis event is raised when a particular instance of BinaryPanelBarButton object's visibility is changed.
CollapseExpandButtonClickedOccurs when the BinaryPanelBar control's collapse / expand button is clicked.
ContextMenuShowNavigationPaneOptionsClickedThis event is raised when the ContextMenu menu item to open up the "Navigation pane options" is clicked by the user.
GripperHandleMovedThis event is raised when the user moves the gripper handle (in the control) to hide/show BinaryPanelBarButton button objects that are currently available for use in the control.
ShowFewerButtonsMenuItemClickedThis event is raised when the user clicks on the "Show fewer buttons" context menu item.
ShowMoreButtonsMenuItemClickedThis event is raised when the user clicks on the "Show more buttons" context menu item.
XpThemeChangedThis event is raised when the control's XPThemeToEmulate property is changed.
XpThemeChangingThis event is raised when the control's XPThemeToEmulate property is about to be changed.

Constructors

BinaryPanelBar

public BinaryPanelBar()

Creates a new instance of BinaryPanelBar control object.

Properties

AddShowNavigationOptionsMenuItem

public bool AddShowNavigationOptionsMenuItem

Gets or sets whether to show the "Show Navigation Panel Options..." content menu item.

AddShowNavigationOptionsMenuResourceProviderInstance

public PanelBarAddShowNavigationOptionsMenuResourceProvider AddShowNavigationOptionsMenuResourceProviderInstance

Gets or sets the add show navigation options menu resource provider instance.

Value. The add show navigation options menu resource provider instance.

BorderStyle

public new System.Windows.Forms.BorderStyle BorderStyle

Provides a new implementation for BorderStyle for this control.

ButtonBorderStyle

public PanelBarBorderStyle ButtonBorderStyle

Gets or sets the border style for all of the BinaryPanelBarButton objects that are currently hosted in this instance of BinaryPanelBar control.

Refer ButtonBorderStyle property for more details.

ButtonHoverEndColor

public Color ButtonHoverEndColor

Gets or sets the gradient end colour drawn on a button the pointer is over.

ButtonHoverSelectedEndColor

public Color ButtonHoverSelectedEndColor

Gets or sets the gradient end colour drawn when the pointer is over the selected button.

ButtonHoverSelectedStartColor

public Color ButtonHoverSelectedStartColor

Gets or sets the gradient start colour drawn when the pointer is over the selected button.

ButtonHoverStartColor

public Color ButtonHoverStartColor

Gets or sets the gradient start colour drawn on a button the pointer is over.

Applies to every button on this bar, now and when one is added later. Until 2026-09-09 this colour and the five below it were literals inside the button's own paint with no way to reach them, which is where the bar's amber came from. HANDOVER.md 3ae.

ButtonSelectedEndColor

public Color ButtonSelectedEndColor

Gets or sets the gradient end colour drawn on the selected button.

ButtonSelectedStartColor

public Color ButtonSelectedStartColor

Gets or sets the gradient start colour drawn on the selected button.

CollapseExpandButtonColor

public Color CollapseExpandButtonColor

Gets or sets the color of the Collapse/expand button.

ContextMenuChevronColor

public Color ContextMenuChevronColor

Gets or sets the control's context menu button's chevron drawing color.

ControlBorderStyle

public PanelBarBorderStyle ControlBorderStyle

Gets or sets the control's border style.

Use this property instead of the base property BorderStyle.

ControlInCollapsedMode

public bool ControlInCollapsedMode

Gets or sets whether the bar is collapsed to a narrow rail at its docked edge.

Collapsed, the bar keeps its height and shrinks to a rail showing the selected button's text, reading upwards. Clicking the rail opens the selected button's panel in a flyout beside it; expanding puts the bar back to the width it had when it collapsed. Has no effect unless RenderInOutlookStyleExpandCollapseMode is true, which is also what puts the collapse button in the header. A request to collapse while that is off is ignored and this stays false. Nor does it collapse a bar whose Dock is Fill: the header button refuses one, since a bar that fills its container has nowhere to give the width back to. Setting it does not raise AboutToCollapseOrExpand or CollapseExpandButtonClicked; those report the user's click on the header button. This is runtime state, so the designer neither shows nor serialises it.

CurrentlySelectedButton

public BinaryPanelBarButton CurrentlySelectedButton

Gets the currently selected/activated BinaryPanelBarButton.

CustomChevronImage

public Bitmap CustomChevronImage

Gets or sets the custom Bitmap object for the control's chevron (i.e. the context menu button) image.

If no valid Bitmap object is set for this property, the control will use an internal (built-in) image for the context menu button.

CustomImageTransparentColor

public Color CustomImageTransparentColor

Gets or sets a transparency color for the custom image that is set in the control's property CustomChevronImage.

EndColor

public Color EndColor

Gets or sets the end color value to be used to draw the control's button objects when the control's XPThemeToEmulate value is set to None.

GripperColor

public Color GripperColor

Gets or sets the gripper color.

Note that to be able to use your custom color for the gripper handle, you must set the control's XPThemeToEmulate property to None.

GripperHeight

public int GripperHeight

Gets or sets the control's gripper handle height.

HowManyPanelButtonsToShow

public int HowManyPanelButtonsToShow

Gets or sets the number of BinaryPanelBarButton objects to display in this instance of BinaryPanelBar control.

The default value is 1.

ItemColorRenderingStyle

public PanelBarItemColorRenderingStyle ItemColorRenderingStyle

Gets or sets the rendering style for drawing the menu item selection rectangle area.

Items

public ArrayList Items

Gets the list of all BinaryPanelBarButton objects that are currently hosted in this instance of BinaryPanelBar control.

LeftMarginForDrawingMainHeaderText

public int LeftMarginForDrawingMainHeaderText

Gets or sets the left margin, when drawing the control's main header text.

MainHeaderHeight

public int MainHeaderHeight

Gets or sets the height of the control's main header strip, in logical (96 DPI) units.

Zero - the default - measures it from MainHeaderTextFont instead, which is what it should have done all along: the font is in points and grows with the display, the strip was a flat twenty-five DEVICE pixels set once by the designer and never touched again, and at 250% that is a strip a third the height of its own text. Set a value here only to pin the strip to a size of your own. HANDOVER.md 3ac.

MainHeaderTextColor

public Color MainHeaderTextColor

Gets or sets the the color for drawing the control's main header text.

MainHeaderTextFont

public Font MainHeaderTextFont

Gets or sets the Font to be used, when drawing the control's main header text.

MenuItemAvailableButtonCheckedStateBorderColor

public Color MenuItemAvailableButtonCheckedStateBorderColor

Gets or sets the border color for the available button's image checked state, in the context menu / chevron menu system in the control.

MenuItemSelectionBackgroundColor

public Color MenuItemSelectionBackgroundColor

Gets or sets the selection background color for the menu item in the context menu / chevron menu system in the control.

PanelBarButtons

public System.Collections.Generic.List<BinaryPanelBarButton> PanelBarButtons

The panel bar's buttons, gathered from its child controls. The list is built on each read, so it is a snapshot rather than a live view.

PanelBarWindowFillColorWhenInCollapsedModeAndTheContainedPanelIsShowing

public Color PanelBarWindowFillColorWhenInCollapsedModeAndTheContainedPanelIsShowing

Gets or sets the fill color for the panel window, when the control is in collapsed mode and the contained panel for the current active panel window is showing .

The default value is Info.

PanelBarWindowFillColorWhenInCollpasedMode

public Color PanelBarWindowFillColorWhenInCollpasedMode

Gets or sets the fill color for the panel window, when the control is in collapsed mode.

The default value is Window.

PanelBarWindowTextColorWhenInCollpasedMode

public Color PanelBarWindowTextColorWhenInCollpasedMode

Gets or sets the fore color for the panel text that will be displayed, when the control is in the collapsed panel mode.

The default value is Highlight.

PanelText

public string PanelText

Gets or sets the text for the control's main heading area.

Usually this text comes from the currently selected BinaryPanelBarButton's ButtonText property.
But if you need to temporarily set the control's main heading area's text for any purpose, then you could use this property to set that text.

PanelWindowTextFontWhenInCollapsedMode

public Font PanelWindowTextFontWhenInCollapsedMode

Gets or sets the font for the text that will be displayed in the collapsed panel window

PanelWindowTextWhenGripperIsOnMove

public string PanelWindowTextWhenGripperIsOnMove

Gets or sets the text that will be displayed in the panel window, when the control is in collapsed mode and when the user is moving the gripper handle up/down.

The default string value is "Working...".

ReflectCurrentXPThemeColorOnLoad

public bool ReflectCurrentXPThemeColorOnLoad

Gets or sets whether the control should paint itself based on the current active XP theme.

This property will have effect only when the control is running in Windows XP Operating system.
Every time the hosting container (i.e. a Form, etc.) is loaded, the control will draw itself with the relevant colors to simulate the current active XP theme.
The default value is false.

RenderInOutlookStyleExpandCollapseMode

public bool RenderInOutlookStyleExpandCollapseMode

Gets or sets whether to switch on / off the Outlook style expand/collapsing feature.

SelectedButton

public BinaryPanelBarButton SelectedButton

Gets the currently selected BinaryPanelBarButton object.

ShouldAutoResetFocusToControlAfterPopupWindowHide

public bool ShouldAutoResetFocusToControlAfterPopupWindowHide

Gets or sets whether the control should automatically set the focus to itself soon after the user has hidden / dismissed the pop-up window when in collapsed mode.

Size

public new Size Size

Provides a newer implementation.

StartColor

public Color StartColor

Gets or sets the start color value to be used to draw the control's button objects when the control's XPThemeToEmulate value is set to None.

TopMarginForDrawingMainHeaderText

public int TopMarginForDrawingMainHeaderText

Gets or sets the top margin, when drawing the control's main header text.

UpdateWhenSystemColorsChanges

public bool UpdateWhenSystemColorsChanges

Gets or sets whether the control needs to repaint itself when the SystemColorsChanged event is raised.

UseSolidBrushWhenPaintingButtons

public bool UseSolidBrushWhenPaintingButtons

Gets or sets whether to use a SolidBrush to paint the control and its button objects when the control's XPThemeToEmulate property is set to None value and valid start and end colors have been set.

The default value is false, which means the control will draw the control's / button's surface using a gradient brush.

WirePanelBarButtonClickEventToBaseBarButton

public bool WirePanelBarButtonClickEventToBaseBarButton

Gets or sets whether any click event handler that you have attached to the BinaryPanelBarButton object should be wired into the small / minimized "related" button (that sits in the base bar) click event.

XPThemeToEmulate

public XPTheme XPThemeToEmulate

Gets or sets the XPTheme to be emulated when drawing this instance of the control.

Methods

AddBinaryPanelBarButton

public void AddBinaryPanelBarButton(BinaryPanelBarButton tempObject)

A helper method to add a BinaryPanelBarButton object into this control's instance.

tempObject
A newly instantiated BinaryPanelBarButton object.

DeSelectBinaryPanelBarButton

public void DeSelectBinaryPanelBarButton(BinaryPanelBarButton theObject)

A helper method to deselect a particular (existing) BinaryPanelBarButton object from this control's instance.

theObject
An existing BinaryPanelBarButton object instance.

DeSelectBinaryPanelBarButton

public void DeSelectBinaryPanelBarButton(int objectIndex)

A helper method to deselect a particular (existing) BinaryPanelBarButton object from this control's instance.

objectIndex
The index of that particular BinaryPanelBarButton object instance.

Dispose

protected override void Dispose(bool disposing)

Refer the base class documentation for this method.

disposing

GetPanelButtonAt

public BinaryPanelBarButton GetPanelButtonAt(Point thePoint)

A helper method to get an instance of BinaryPanelBarButton that is located at the specified coordinates.

thePoint
A specific location where to see if a valid instance of BinaryPanelBarButton exists.

Returns. If there is a valid BinaryPanelBarButton object at the given coordinates is available, then that particular object's instance is returned. Otherwise a null reference is returned.

ItemAt

public BinaryPanelBarButton ItemAt(int index)

Gets the instance of the BinaryPanelBarButton object that is at a specified index position in the collection of objects in this instance of BinaryPanelBar control.

index
The index of the BinaryPanelBarButtonobject to retrieve.

MakeAvailableAllBinaryPanelBarButtonObjects

public void MakeAvailableAllBinaryPanelBarButtonObjects()

A helper method to "make available for use" all of the BinaryPanelBarButton objects that are currently in this instance of BinaryPanelBar control.

MakeAvailableForUseOnlyTheSpecifiedBinaryPanelBarButtons

public void MakeAvailableForUseOnlyTheSpecifiedBinaryPanelBarButtons(ArrayList buttonObjects)

A helper method to "make available for use", only a certain BinaryPanelBarButton objects.

buttonObjects
A list of BinaryPanelBarButton objects to be "made available for use".

MakeUnAvailableAllBinaryPanelBarButtonObjects

public void MakeUnAvailableAllBinaryPanelBarButtonObjects()

A helper method to "make unavailable for use" all of the BinaryPanelBarButton objects that are currently in this instance of BinaryPanelBar control.

MoveDownByOneIndexTheSpecifiedBinaryPanelBarButtonObject

public void MoveDownByOneIndexTheSpecifiedBinaryPanelBarButtonObject( BinaryPanelBarButton theObject)

A helper method to move down in index, by one level, of the particular BinaryPanelBarButton object that is currently in the list of controls hosted by this instance of BinaryPanelBar control.

theObject
The particular BinaryPanelBarButton object whose index needs to be re-set.

MoveUpByOneIndexTheSpecifiedBinaryPanelBarButtonObject

public void MoveUpByOneIndexTheSpecifiedBinaryPanelBarButtonObject( BinaryPanelBarButton theObject)

A helper method to move up in index, by one level, of the particular BinaryPanelBarButton object that is currently in the list of controls hosted by this instance of BinaryPanelBar control.

theObject
The particular BinaryPanelBarButton object whose index needs to be re-set.

OnDockChanged

protected override void OnDockChanged(EventArgs e)

Raises the DockChanged event. BinaryPanelBar overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnHandleCreated

protected override void OnHandleCreated(EventArgs e)

Refer to base class documentation.

OnMouseDown

protected override void OnMouseDown(System.Windows.Forms.MouseEventArgs e)

Refer the base class documentation for this method.

OnPaint

protected override void OnPaint(PaintEventArgs e)

Refer the base class documentation for this method.

OnResize

protected override void OnResize(EventArgs e)

Refer the base class documentation for this method.

OnSizeChanged

protected override void OnSizeChanged(EventArgs e)

Raises the SizeChanged event. BinaryPanelBar overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnSystemColorsChanged

protected override void OnSystemColorsChanged(EventArgs e)

Refer to base class documentation.

e

RemoveBinaryPanelBarButton

public void RemoveBinaryPanelBarButton(BinaryPanelBarButton tempObject)

A helper method to remove a particular (existing) BinaryPanelBarButton object from this control's instance.

tempObject
An existing BinaryPanelBarButton object.

RemoveBinaryPanelBarButton

public void RemoveBinaryPanelBarButton(int objectIndex)

A helper method to remove a particular (existing) BinaryPanelBarButton object from this control's instance.

objectIndex
The index of that particular BinaryPanelBarButton object instance.

ResetAvailabilityStatusOfThePanelBarButtonObject

public void ResetAvailabilityStatusOfThePanelBarButtonObject(BinaryPanelBarButton theObject, bool makeItAvailable)

A helper method to reset the "availability for use" of a specified BinaryPanelBar object.

theObject
The BinaryPanelBarButton instance that needs to be either "made available for use" or otherwise.
makeItAvailable
True to make it available for use, false otherwise.

ResetIndexForTheSpecifiedBinaryPanelBarButtonObject

public void ResetIndexForTheSpecifiedBinaryPanelBarButtonObject( BinaryPanelBarButton theObject, int newIndex)

A helper method to reset the index of a particular BinaryPanelBarButton object.

theObject
The particular BinaryPanelBarButton object whose index needs to be re-set.
newIndex
The new desired index for the specified BinaryPanelBarButton object instance.

SelectBinaryPanelBarButton

public void SelectBinaryPanelBarButton(int objectIndex)

A helper method to select a particular (existing) BinaryPanelBarButton object in this control's instance.

objectIndex
The index of that particular BinaryPanelBarButton object instance.

SelectBinaryPanelBarButton

public void SelectBinaryPanelBarButton(BinaryPanelBarButton theObject)

A helper method to select a particular (existing) BinaryPanelBarButton object in this control's instance.

theObject
An existing valid BinaryPanelBarButton object instance.

ShowSpecifiedBinaryPanelBarButtonsInMainViewList

public void ShowSpecifiedBinaryPanelBarButtonsInMainViewList(ArrayList theObjectsToShow)

A helper method to "make visible" a specific set of BinaryPanelBarButton objects that are currently in this instance of BinaryPanelBar control.

theObjectsToShow
An ArrayList of BinaryPanelBarButton objects.

Events

AboutToCollapseOrExpand

public event EventHandler<PanelBarAboutToCollapseOrExpandEventArgs> AboutToCollapseOrExpand

Occurs when the control is about to collapse or expand.

BinaryPanelBarButtonClicked

public event EventHandler BinaryPanelBarButtonClicked

This event is raised when a particular instance of BinaryPanelBarButton object is clicked.

BinaryPanelBarButtonContainedPanelAppliedOrChanged

public event EventHandler BinaryPanelBarButtonContainedPanelAppliedOrChanged

This event is raised when a particular instance of BinaryPanelBarButton object's associated BinaryPanelBarContainedPanel object is changed via changing the ContainedPanel property.

BinaryPanelBarButtonImageChanged

public event EventHandler BinaryPanelBarButtonImageChanged

This event is raised when a particular instance of BinaryPanelBarButton object's image is changed.

BinaryPanelBarButtonNotAvailableForUseChanged

public event EventHandler BinaryPanelBarButtonNotAvailableForUseChanged

This event is raised when a particular instance of BinaryPanelBarButton object is made unavailable for use (either by the user or programmatic).

BinaryPanelBarButtonNotAvailableForUseChanging

public event BinaryPanelBarButtonNotAvailableForUseChangingHandler BinaryPanelBarButtonNotAvailableForUseChanging

This event is raised when a particular instance of BinaryPanelBarButton object is about to be made unavailable for use (either by the user or programmatic).

BinaryPanelBarButtonTextChanged

public event EventHandler BinaryPanelBarButtonTextChanged

This event is raised when a particular instance of BinaryPanelBarButton object's text is changed.

BinaryPanelBarButtonVisibleChanged

public event EventHandler BinaryPanelBarButtonVisibleChanged

This event is raised when a particular instance of BinaryPanelBarButton object's visibility is changed.

CollapseExpandButtonClicked

public event EventHandler<PanelBarCollapseExpandEventArgs> CollapseExpandButtonClicked

Occurs when the BinaryPanelBar control's collapse / expand button is clicked.

ContextMenuShowNavigationPaneOptionsClicked

public event PanelBarContextMenuShowNavigationPaneOptionsHandler ContextMenuShowNavigationPaneOptionsClicked

This event is raised when the ContextMenu menu item to open up the "Navigation pane options" is clicked by the user.

GripperHandleMoved

public event PanelBarGripperHandleMovedHandler GripperHandleMoved

This event is raised when the user moves the gripper handle (in the control) to hide/show BinaryPanelBarButton button objects that are currently available for use in the control.

ShowFewerButtonsMenuItemClicked

public event ShowMoreOrFewerPanelBarButtonsMenuItemClickedHandler ShowFewerButtonsMenuItemClicked

This event is raised when the user clicks on the "Show fewer buttons" context menu item.

ShowMoreButtonsMenuItemClicked

public event ShowMoreOrFewerPanelBarButtonsMenuItemClickedHandler ShowMoreButtonsMenuItemClicked

This event is raised when the user clicks on the "Show more buttons" context menu item.

XpThemeChanged

public event PanelBarXPThemeChangedHandler XpThemeChanged

This event is raised when the control's XPThemeToEmulate property is changed.

XpThemeChanging

public event PanelBarXPThemeChangingHandler XpThemeChanging

This event is raised when the control's XPThemeToEmulate property is about to be changed.