HypernovaDesktop Components · docs
Binarymission
WinFormsOffice Window › IModernWindowChromeProvider

IModernWindowChromeProvider

interface.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.Windows

Specifies the methods to be implemented by a custom Window chrome rendering provider.

public interface IModernWindowChromeProvider

Members at a glance

DrawChromeBorderDraws the chrome border.
DrawTitleBarDraws the title bar and its contents.
HandleMouseDoubleClickRaises an opportunity to handle the mouse double-click in the non-client area / chrome if need be.
HandleMouseLeftButtonDownRaises an opportunity to handle the mouse "left button down" in the non-client area / chrome if need be.
HandleMouseLeftButtonUpRaises an opportunity to handle the mouse "left button up" in the non-client area / chrome if need be.
HandleMouseMoveRaises an opportunity to handle the mouse move in the non-client area / chrome if need be.
HandleMouseRightButtonUpRaises an opportunity to handle the mouse "right button up" in the non-client area / chrome if need be.
HandleRightClickOnTaskBarRaises an opportunity to handle the mouse right-click on the task bar button representation of the window if need be.

Methods

DrawChromeBorder

void DrawChromeBorder(IModernChromeHostWindow hostWindow, Graphics drawingGraphicsContext)

Draws the chrome border.

hostWindow
The host window.
drawingGraphicsContext
The supplied graphics object instance which should be used to draw the chrome border.

DrawTitleBar

void DrawTitleBar(IModernChromeHostWindow hostWindow, Graphics drawingGraphicsContext, Rectangle drawingSurfaceBounds)

Draws the title bar and its contents.

hostWindow
Host window instance.
drawingGraphicsContext
The supplied graphics object instance which should be used to draw the chrome contents.
drawingSurfaceBounds
Specifies the bounds of the chrome's title bar area within which the custom drawing implementation needs to draw the desired contents.

HandleMouseDoubleClick

void HandleMouseDoubleClick(IModernChromeHostWindow hostWindow, Graphics drawingGraphicsContext, Point mousePoint)

Raises an opportunity to handle the mouse double-click in the non-client area / chrome if need be.

HandleMouseLeftButtonDown

void HandleMouseLeftButtonDown(IModernChromeHostWindow hostWindow, Graphics drawingGraphicsContext, Point mousePoint)

Raises an opportunity to handle the mouse "left button down" in the non-client area / chrome if need be.

HandleMouseLeftButtonUp

void HandleMouseLeftButtonUp(IModernChromeHostWindow hostWindow, Graphics drawingGraphicsContext, Point mousePoint)

Raises an opportunity to handle the mouse "left button up" in the non-client area / chrome if need be.

HandleMouseMove

void HandleMouseMove(IModernChromeHostWindow hostWindow, Graphics drawingGraphicsContext, Point mousePoint)

Raises an opportunity to handle the mouse move in the non-client area / chrome if need be.

HandleMouseRightButtonUp

void HandleMouseRightButtonUp(IModernChromeHostWindow hostWindow, Graphics drawingGraphicsContext, Point mousePoint)

Raises an opportunity to handle the mouse "right button up" in the non-client area / chrome if need be.

HandleRightClickOnTaskBar

void HandleRightClickOnTaskBar(IModernChromeHostWindow hostWindow, Graphics drawingGraphicsContext)

Raises an opportunity to handle the mouse right-click on the task bar button representation of the window if need be.