BinaryHeaderControl
An "extended" MS Outlook (c) style "Navigation bar" header control.
public class BinaryHeaderControl : Panel
Inherits from / implements: Panel
Members at a glance
BinaryHeaderControl | Constructs an instance of BinaryHeaderControl class. |
AutoScroll | Gets the value indicating whether the auto-scroll is switched on or off. |
BackgroundGradientDrawingDirection | Gets or sets the background gradient drawing direction. |
BorderColor | Gets or sets the color of the border. |
BorderStyle | Indicates the border style for the control. |
BorderWidth | Gets or sets the width of the border. |
ColorScheme | Gets or sets the color scheme. |
ContextMenuArrowColor | Gets or sets the color of the context menu arrow. |
ContextMenuEllipseColor | Gets or sets the color of the context menu ellipse. |
ContextMenuImageType | Gets or sets the type of the context menu image. |
ContextMenuType | Gets or sets whether to use the menu object from the HeaderContextMenu or HeaderContextMenuStrip. |
ControlIsInExpandedState | Gets or sets whether the control is in expanded or collapsed state. |
CustomContextMenuButtonImageTransparencyColor | Gets or sets the color of the custom context menu button image transparency. |
CustomIconForContextMenuButton | Gets or sets the custom image for context menu button. |
CustomImageForContextMenuButton | Gets or sets the custom image for context menu button. |
DrawBorderAround | Gets or sets the draw border around value from the DrawBorderAround enumeration. |
DrawFooter | Gets or sets a value indicating whether to draw the footer. |
EnableCollapseExpandButton | Gets or sets whether to display and enable the collapse/expand button. |
EnableHeaderContextMenu | Gets or sets a value indicating whether to enable header context menu. |
EndColorForBackgroundRendering | Gets or sets the end color for background gradient rendering. |
EndColorForFooterRendering | Gets or sets the end color for footer gradient rendering. |
EndColorForHeaderRendering | Gets or sets the end color for header gradient rendering. |
ExpandCollapseCircleFillColor | Gets or sets the fill color of the expand / collapse circle. |
ExpandCollapseUpDownArrowsFillColor | Gets or sets the fill color of the expand / collapse up / down arrows. |
FooterBorderColor | Gets or sets the color of the footer border. |
FooterBorderThickness | Gets or sets the footer border weight. |
FooterCaptionFont | Gets or sets the footer caption font. |
FooterCaptionHeight | Gets or sets the height of the footer caption. |
FooterGradientDrawingDirection | Gets or sets the footer gradient drawing direction. |
FooterText | Gets or sets the footer text. |
FooterTextForeColor | Gets or sets the forecolor to be used for drawing the footer area text. |
FooterTextStringFormat | Gets or sets the footer text string format. |
HeaderBitmapTransparencyColor | Gets or sets the color of the header bitmap transparency. |
HeaderBorderColor | Gets or sets the color of the header border. |
HeaderBorderThickness | Gets or sets the header border weight. |
HeaderCaptionFont | Gets or sets the header caption font. |
HeaderCaptionHeight | Gets or sets the height of the header caption. |
HeaderContextMenu | Gets or sets the header context menu that will be shown when clicked on the right-hand side corner (in the header) context menu button. |
HeaderContextMenuStrip | Gets or sets the header context menu that will be shown when clicked on the right-hand side corner (in the header) context menu button. |
HeaderFooterDrawingStyle | Gets or sets the header and footer drawing style. |
HeaderGradientDrawingDirection | Gets or sets the header gradient drawing direction. |
HeaderIcon | Gets or sets the header icon. |
HeaderImage | Gets or sets the header image. |
HeaderImageType | Gets or sets the type of the header image. |
HeaderLocation | Gets or sets the header location. |
HeaderText | Gets or sets the header text. |
HeaderTextForeColor | Gets or sets the forecolor to be used for drawing the Header area text. |
HeaderTextStringFormat | Gets or sets the header text string format. |
Size | The size of the header. Hidden from the base so that setting it can re-lay the header's content, which a plain assignment to the inherited property would not do. |
StartColorForBackgroundRendering | Gets or sets the start color for background gradient rendering. |
StartColorForFooterRendering | Gets or sets the start color for footer gradient rendering. |
StartColorForHeaderRendering | Gets or sets the start color for header gradient rendering. |
UseAntiAliasingAsHeaderCaptionTextRenderingHint | Gets or sets a value indicating whether [use anti aliasing as header caption text rendering hint]. |
UseCustomImageForContextMenuButton | Gets or sets a value indicating whether to use custom image for context menu button. |
OnFontChanged | Raises the FontChanged event. BinaryHeaderControl overrides it so that a caption font nobody has set explicitly keeps following the control's own font. |
OnPaint | Raises the Paint event. BinaryHeaderControl overrides it so the control's own handling runs alongside the base behavior. |
OnPaintBackground | Raises the PaintBackground event. BinaryHeaderControl overrides it so the control's own handling runs alongside the base behavior. |
OnResize | Raises the Resize event. BinaryHeaderControl overrides it so the control's own handling runs alongside the base behavior. |
PerformCollapseExpand | Lets you perform the collapse / expand of the control deterministically. |
WndProc | Processes the Windows messages sent to this control's window. |
FooterClicked | This event is raised when the user clicks on any location in the Footer area of the control. |
HeaderClicked | This event is raised when the user clicks on any location in the Header area of the control. |
HeaderContextMenuAboutToBeDisplayed | This event is raised when the context menu in the header area is about to be displayed. Refer to the the delegate HeaderContextMenuAboutToBeDisplayedHandler for information. |
Constructors
BinaryHeaderControl
Constructs an instance of BinaryHeaderControl class.
Properties
AutoScroll
Gets the value indicating whether the auto-scroll is switched on or off.
BinaryScrollablePanel control into the client area of this control and then place any child controls on this surface.BackgroundGradientDrawingDirection
Gets or sets the background gradient drawing direction.
Value. The background gradient drawing direction.
BorderColor
Gets or sets the color of the border.
Value. The color of the border.
BorderStyle
Indicates the border style for the control.
None.BorderWidth
Gets or sets the width of the border.
Value. The width of the border.
ColorScheme
Gets or sets the color scheme.
Value. The color scheme.
ControlIsInExpandedState
Gets or sets whether the control is in expanded or collapsed state.
DrawBorderAround
Gets or sets the draw border around value from the DrawBorderAround enumeration.
For more details, refer to
DrawBorderAround.EnableCollapseExpandButton
Gets or sets whether to display and enable the collapse/expand button.
EndColorForBackgroundRendering
Gets or sets the end color for background gradient rendering.
Value. The end color for background rendering.
EndColorForHeaderRendering
Gets or sets the end color for header gradient rendering.
Value. The end color for header rendering.
ExpandCollapseCircleFillColor
Gets or sets the fill color of the expand / collapse circle.
ExpandCollapseUpDownArrowsFillColor
Gets or sets the fill color of the expand / collapse up / down arrows.
HeaderBitmapTransparencyColor
Gets or sets the color of the header bitmap transparency.
Value. The color of the header bitmap transparency.
HeaderBorderColor
Gets or sets the color of the header border.
Value. The color of the header border.
HeaderBorderThickness
Gets or sets the header border weight.
Value. The header border weight.
HeaderCaptionFont
Gets or sets the header caption font.
Value. The header caption font.
HeaderCaptionHeight
Gets or sets the height of the header caption.
Value. The height of the header caption.
HeaderGradientDrawingDirection
Gets or sets the header gradient drawing direction.
Value. The header gradient drawing direction.
HeaderIcon
Gets or sets the header icon.
Value. The header icon.
HeaderImage
Gets or sets the header image.
Value. The header image.
HeaderImageType
Gets or sets the type of the header image.
Value. The type of the header image.
HeaderLocation
Gets or sets the header location.
Value. The header location.
HeaderText
Gets or sets the header text.
Value. The header text.
HeaderTextForeColor
Gets or sets the forecolor to be used for drawing the Header area text.
HeaderTextStringFormat
Gets or sets the header text string format.
Value. The header text string format.
Size
The size of the header. Hidden from the base so that setting it can re-lay the header's content, which a plain assignment to the inherited property would not do.
StartColorForBackgroundRendering
Gets or sets the start color for background gradient rendering.
Value. The start color for background rendering.
StartColorForHeaderRendering
Gets or sets the start color for header gradient rendering.
Value. The start color for header rendering.
UseAntiAliasingAsHeaderCaptionTextRenderingHint
Gets or sets a value indicating whether [use anti aliasing as header caption text rendering hint].
Value. true if [use anti aliasing as header caption text rendering hint]; otherwise, false .
Methods
OnFontChanged
Raises the FontChanged event. BinaryHeaderControl overrides it so that a caption font nobody has set explicitly keeps following the control's own font.
- e
- The data for the event.
Font in the constructor and were never updated again, so a control given a font the ordinary way - an object initializer, a designer, an ambient font from its parent - went on drawing its caption and its footer in the default face. That also broke the band heights, which are now the larger of the property and the caption font's line height: the band was being sized against a font the control was not drawing with. A font assigned through HeaderCaptionFont or FooterCaptionFont is the caller's and is left alone; assigning null gives the inheritance back.OnPaint
Raises the Paint event. BinaryHeaderControl overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnPaintBackground
Raises the PaintBackground event. BinaryHeaderControl overrides it so the control's own handling runs alongside the base behavior.
- pevent
- The data for the event.
OnResize
Raises the Resize event. BinaryHeaderControl overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
PerformCollapseExpand
Lets you perform the collapse / expand of the control deterministically.
- collapse
- if set to true [collapse].
WndProc
Processes the Windows messages sent to this control's window.
Events
HeaderClicked
This event is raised when the user clicks on any location in the Header area of the control.