BinaryExplorerBar
A feature-rich collapsible/expandable panel bar .NET control.
public class BinaryExplorerBar : Panel, IBinaryControlExtendedServices
Inherits from / implements: Panel, IBinaryControlExtendedServices
Remarks
BinaryExplorerBar control provides a feature-rich navigation panel bar, emulating the collapsible panel bar that appears as the side-bar in the Windows XP Explorer tool.
Members at a glance
BinaryExplorerBar | Initializes a new instance of BinaryExplorerBar class. |
BackColor | Gets or sets the backcolor of the control. |
BackgroundStyle | Gets or sets the ControlBackgroundPaintingStyle for the control. |
CollapseExpandAnimationInterval | Gets or sets the time interval to be used while performing an expand/collapse animation. |
DefaultPanelBorderColor | Gets or sets the default colour of the border drawn around each child panel. |
DefaultPanelBottomMargin | Gets or sets the gap, in logical (96 DPI) pixels, left under the last panel. |
DefaultPanelLeftMargin | Gets or sets the default left margin (in pixel units) for the Panel object. |
DefaultPanelRightMargin | Gets or sets the default right margin (in pixel units) for the Panel object. |
DefaultPanelShadowColor | Gets or sets the default colour of each child panel's drop shadow. |
DefaultPanelShadowDepth | Gets or sets the depth, in logical (96 DPI) pixels, of the drop shadow drawn under each child panel. Zero, the default, draws none. |
DefaultPanelTitleBackColor | Gets or sets the default backcolor for the child panel's title. |
DefaultPanelTitleBackgroundImage | Gets or sets the default background image for panel's title. |
DefaultPanelTitleBackgroundImageTransparentColor | Gets or sets the default transparent color for the background image of the child panel's title. |
DefaultPanelTitleFont | Gets or sets the default Font for the child panel's (BinaryExplorerBarPanel) title. |
DefaultPanelTitleForeColor | Gets or sets the default forecolor for the child panel's title. |
DefaultPanelTitleGradientBeginColor | Gets or sets the default gradient begin color for the child panel's title. |
DefaultPanelTitleGradientEndColor | Gets or sets the default gradient end color for the child panel's title. |
DefaultPanelTitleHoverColor | Gets or sets the default hover color for the child panel's title. |
DefaultPanelTopMargin | Gets or sets the default top margin (in pixel units) for the Panel object. |
GradientBeginColor | Gets or sets the gradient begin color for painting the control's background. |
GradientEndColor | Gets or sets the gradient end color for painting the control's background. |
IsPanelResizable | Gets or sets whether to enable resizing of child panels. |
OnHoverUpDownArrowColor | Gets or sets the color for the Up/Down arrow image, when the mouse pointer is over the panel object's title bar. |
OnHoverUpDownArrowEllipseFillColor | Gets or sets the Ellipse fill color for the Up/Down arrow image, when the mouse pointer is over the Panel object's title bar. |
OnNormalUpDownArrowColor | Gets or sets the color for the Up/Down arrow image. |
OnNormalUpDownArrowEllipseFillColor | Gets or sets the Ellipse fill color for the Up/Down arrow image that appears at the right most corner of the BinaryExplorerBarPanel object. |
Panels | BinaryExplorerBarPanelCollection of panels for BinaryExplorerBar. |
PerformAnimation | Gets or sets whether to perform an animation while expanding/collapsing the panel objects. |
ReflectCurrentXPTheme | Gets or sets whether to reflect the current active XP theme. |
ShadowColor | Gets or sets the colour of the bar's own drop shadow. |
ShadowDepth | Gets or sets the depth, in logical (96 DPI) pixels, of the drop shadow drawn along the bar's own right and bottom edges. Zero, the default, draws none. |
ShouldPaintPanelItemCornersAsRoundedRect | Whether panel items are drawn with rounded corners rather than square ones. |
ThemeOrCustomColors | Gets or sets a flag as to which option to use, when the ReflectCurrentXPTheme property is set to false. |
XPTheme | Gets or sets an Windows XP theme to emulate. |
EmulateThisXPTheme | Enables painting the control with XP theme colors. |
OnControlRemoved | Raises the ControlRemoved event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior. |
OnHandleCreated | Raises the HandleCreated event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseDown | Raises the MouseDown event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseEnter | Raises the MouseEnter event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseLeave | Raises the MouseLeave event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseMove | Raises the MouseMove event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseUp | Raises the MouseUp event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseWheel | Raises the MouseWheel event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior. |
OnPaint | Raises the Paint event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior. |
OnScroll | Raises the Scroll event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior. |
OnSizeChanged | Raises the SizeChanged event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior. |
OnSystemColorsChanged | Raises the SystemColorsChanged event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior. |
OnVisibleChanged | Raises the VisibleChanged event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior. |
ResetAllPanelsState | Lets you Expand/Collapse all of the BinaryExplorerBarPanel objects in just one method call. |
ResetThisPanelState | Lets you Expand/Collapse a specified BinaryExplorerBarPanel object in just one method call. |
BinaryExplorerBarPanelTitleClicked | This event is raised when the user clicks on a specific BinaryExplorerBarPanel object's title. |
Constructors
BinaryExplorerBar
Initializes a new instance of BinaryExplorerBar class.
Properties
BackColor
Gets or sets the backcolor of the control.
BackgroundStyle
Gets or sets the ControlBackgroundPaintingStyle for the control.
CollapseExpandAnimationInterval
Gets or sets the time interval to be used while performing an expand/collapse animation.
DefaultPanelBorderColor
Gets or sets the default colour of the border drawn around each child panel.
BinaryExplorerBarPanel objects, you could set this property with such value. Once set, this property's value will be used across all panel objects unless that particular panel object has a specific value set for this property. The border encloses the title bar and the panel body together, one pixel outside the panel's own bounds, inside the bar's left and right margins.
Empty - the default - draws nothing.DefaultPanelBottomMargin
Gets or sets the gap, in logical (96 DPI) pixels, left under the last panel.
DefaultPanelLeftMargin
Gets or sets the default left margin (in pixel units) for the Panel object.
DefaultPanelRightMargin
Gets or sets the default right margin (in pixel units) for the Panel object.
DefaultPanelShadowColor
Gets or sets the default colour of each child panel's drop shadow.
PanelShadowColor uses that instead. Empty, the default, is a soft black.DefaultPanelShadowDepth
Gets or sets the depth, in logical (96 DPI) pixels, of the drop shadow drawn under each child panel. Zero, the default, draws none.
PanelShadowDepth uses that instead. The shadow is drawn in the bar's margins round the panel, where its border is drawn, so the margins have to be at least as wide as the shadow is deep - they are twelve logical pixels by default.DefaultPanelTitleBackColor
Gets or sets the default backcolor for the child panel's title.
BinaryExplorerBarPanel objects, you could set this property with such value. Once set, this property's value will be used across all panel objects unless that particular panel object has a specific value set for this property.
DefaultPanelTitleBackgroundImage
Gets or sets the default background image for panel's title.
BinaryExplorerBarPanel objects, you could set this property with such value. Once set, this property's value will be used across all panel objects unless that particular panel object has a specific value set for this property.
DefaultPanelTitleBackgroundImageTransparentColor
Gets or sets the default transparent color for the background image of the child panel's title.
BinaryExplorerBarPanel objects, you could set this property with such value. Once set, this property's value will be used across all panel objects unless that particular panel object has a specific value set for this property.
DefaultPanelTitleFont
Gets or sets the default Font for the child panel's (BinaryExplorerBarPanel) title.
BinaryExplorerBarPanel objects, you could set this property with such value. Once set, this property's value will be used across all panel objects unless that particular panel object has a specific value set for this property.
DefaultPanelTitleForeColor
Gets or sets the default forecolor for the child panel's title.
BinaryExplorerBarPanel objects, you could set this property with such value. Once set, this property's value will be used across all panel objects unless that particular panel object has a specific value set for this property.
DefaultPanelTitleGradientBeginColor
Gets or sets the default gradient begin color for the child panel's title.
BinaryExplorerBarPanel objects, you could set this property with such value. Once set, this property's value will be used across all panel objects unless that particular panel object has a specific value set for this property.
DefaultPanelTitleGradientEndColor
Gets or sets the default gradient end color for the child panel's title.
BinaryExplorerBarPanel objects, you could set this property with such value. Once set, this property's value will be used across all panel objects unless that particular panel object has a specific value set for this property.
DefaultPanelTitleHoverColor
Gets or sets the default hover color for the child panel's title.
BinaryExplorerBarPanel objects, you could set this property with such value. Once set, this property's value will be used across all panel objects unless that particular panel object has a specific value set for this property.
DefaultPanelTopMargin
Gets or sets the default top margin (in pixel units) for the Panel object.
GradientBeginColor
Gets or sets the gradient begin color for painting the control's background.
Refer
ControlBackgroundPaintingStyle enumeration for more details. GradientEndColor
Gets or sets the gradient end color for painting the control's background.
Refer
ControlBackgroundPaintingStyle enumeration for more details. IsPanelResizable
Gets or sets whether to enable resizing of child panels.
OnHoverUpDownArrowColor
Gets or sets the color for the Up/Down arrow image, when the mouse pointer is over the panel object's title bar.
OnHoverUpDownArrowEllipseFillColor
Gets or sets the Ellipse fill color for the Up/Down arrow image, when the mouse pointer is over the Panel object's title bar.
OnNormalUpDownArrowColor
Gets or sets the color for the Up/Down arrow image.
OnNormalUpDownArrowEllipseFillColor
Gets or sets the Ellipse fill color for the Up/Down arrow image that appears at the right most corner of the BinaryExplorerBarPanel object.
Panels
BinaryExplorerBarPanelCollection of panels for BinaryExplorerBar.
PerformAnimation
Gets or sets whether to perform an animation while expanding/collapsing the panel objects.
ReflectCurrentXPTheme
Gets or sets whether to reflect the current active XP theme.
ShadowColor
Gets or sets the colour of the bar's own drop shadow.
Empty, the default, is a soft black.ShadowDepth
Gets or sets the depth, in logical (96 DPI) pixels, of the drop shadow drawn along the bar's own right and bottom edges. Zero, the default, draws none.
ShouldPaintPanelItemCornersAsRoundedRect
Whether panel items are drawn with rounded corners rather than square ones.
ThemeOrCustomColors
Gets or sets a flag as to which option to use, when the ReflectCurrentXPTheme property is set to false.
XPTheme
Gets or sets an Windows XP theme to emulate.
Methods
EmulateThisXPTheme
Enables painting the control with XP theme colors.
- theTheme
- A supported XP theme.
Note: The control Emulates painting the control with an XP theme as closely as possible.
This may not achieve an exact reproduction of XP theme color (since the simulation is custom drawn). This method can render the control with emulated XP theme colors even in Windows 2000 Operating System.
Refer to
XPTheme enumeration for the supported XP themes. OnControlRemoved
Raises the ControlRemoved event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnHandleCreated
Raises the HandleCreated event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseDown
Raises the MouseDown event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseEnter
Raises the MouseEnter event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseLeave
Raises the MouseLeave event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseMove
Raises the MouseMove event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseUp
Raises the MouseUp event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseWheel
Raises the MouseWheel event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnScroll.OnPaint
Raises the Paint event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior.
- pe
- The data for the event.
OnScroll
Raises the Scroll event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior.
- se
- The data for the event.
OnSizeChanged
Raises the SizeChanged event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnSystemColorsChanged
Raises the SystemColorsChanged event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnVisibleChanged
Raises the VisibleChanged event. BinaryExplorerBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
ResetAllPanelsState
Lets you Expand/Collapse all of the BinaryExplorerBarPanel objects in just one method call.
- state
- One of the states as defined in
BinaryExplorerBarPanelStateenumeration.
ResetThisPanelState
Lets you Expand/Collapse a specified BinaryExplorerBarPanel object in just one method call.
- state
- One of the states as defined in
BinaryExplorerBarPanelStateenumeration. - panelIndex
- Index of the particular
BinaryExplorerBarPanelobject.
Events
BinaryExplorerBarPanelTitleClicked
This event is raised when the user clicks on a specific BinaryExplorerBarPanel object's title.
BinaryExplorerBarPanelTitleClickedHandler delegate for more details.