ModernChromeWindow
A custom Window component that presents UI/UX similar to many modern application windows, including that of MS Office, Win8 (metro style) Window styles.
public class ModernChromeWindow : Form, IModernChromeHostWindow
Inherits from / implements: Form, IModernChromeHostWindow
Members at a glance
ModernChromeWindow | Initializes a new instance of the ModernChromeWindow class. |
AppIconLeftMargin | Gets or sets the application icon left margin. |
BackgroundBrush | Gets or sets the Form background brush. |
BackgroundDisabledCloseCommandButton | Gets or sets the background brush when in "disabled state" for the internal close command button. |
BackgroundDisabledMaximizeRestoreCommandButton | Gets or sets the background brush for the "disabled state" for drawing the maximize / restore command buttons. |
BackgroundDisabledMinimizeCommandButton | Gets or sets the background brush for "disabled state" minimize command button. |
BackgroundHotCloseCommandButton | Gets or sets the background brush when in "hot state" for the internal close command button. |
BackgroundHotMaximizeRestoreCommandButton | Gets or sets the background brush for the "hot state" for drawing the maximize / restore command buttons. |
BackgroundHotMinimizeCommandButton | Gets or sets the background brush for "hot state" minimize command button. |
BackgroundNormalCloseCommandButton | Gets or sets the background brush when in "normal state" for the internal close command button. |
BackgroundNormalMaximizeRestoreCommandButton | Gets or sets the background brush for the "normal state" for drawing the maximize / restore command buttons. |
BackgroundNormalMinimizeCommandButton | Gets or sets the background brush for "normal state" minimize command button. |
BackgroundPressedCloseCommandButton | Gets or sets the background brush when in "pressed state" for the internal close command button. |
BackgroundPressedMaximizeRestoreCommandButton | Gets or sets the background brush for the "pressed state" for drawing the maximize / restore command buttons. |
BackgroundPressedMinimizeCommandButton | Gets or sets the background brush for "pressed state" minimize command button. |
BorderColorDisabledCloseCommandButton | Gets or sets the border color when in "disabled state" for the close command button. |
BorderColorDisabledMaximiseRestoreCommandButton | Gets or sets the border color when in "disabled state" for the maximize/restore command buttons. |
BorderColorDisabledMinimizeCommandButton | Gets or sets the border color when in "disabled state" for the minimize command button. |
BorderColorHotCloseCommandButton | Gets or sets the border color when in "hot state" for the close command button. |
BorderColorHotMaximiseRestoreCommandButton | Gets or sets the border color when in "hot state" for the maximize / restore command buttons. |
BorderColorHotMinimizeCommandButton | Gets or sets the border color when in "hot state" for the minimize command button. |
BorderColorNormalCloseCommandButton | Gets or sets the border color when in "normal state" for the close command button. |
BorderColorNormalMaximiseRestoreCommandButton | Gets or sets the border color when in "normal state" for the maximize/restore command buttons. |
BorderColorNormalMinimizeCommandButton | Gets or sets the border color when in "normal state" for the minimize command button. |
BorderColorPressedCloseCommandButton | Gets or sets the border color when in "pressed state" for the close command button. |
BorderColorPressedMaximiseRestoreCommandButton | Gets or sets the border color when in "pressed state" for the maximize / restore command buttons. |
BorderColorPressedMinimizeCommandButton | Gets or sets the border color when in "pressed state" for the minimize command button. |
ChromeBorderSize | Gets or sets the size of the Window chrome border. |
ChromeTitlebarHeight | Gets or sets the height of the window chrome title bar. |
CloseCommandDisabledButtonImage | Gets or sets the "disabled state" button image for the close command button. |
CloseCommandNormalButtonImage | Gets or sets the "normal state" button image for the close command button. |
CloseCommandOnHoverButtonImage | Gets or sets the "hover state" button image for the close command button. |
CloseCommandOnPushedButtonImage | Gets or sets the "pushed state" button image for the close command button. |
ContainerChild | Gets or sets the main container child. |
CreateParams | Gets the parameters used to create this control's window, with the window styles this control needs added to them. |
DefaultNormalWindowSize | Gets or sets the default size of the normal window. |
DisplayRectangle | The area inside the window available to its content, which is the client area less the custom chrome this window draws for itself. |
EnableMinimizeRestoreActionUponTaskbarIconClick | Gets or sets a value indicating whether the control should enable the feature of automatically responding to either minimize or restore (as the case may be) upon upon the user clicking on the Window's taskbar icon. |
EnableMinimizeRestoreAnimation | Gets or sets a value indicating whether the control performs animation while the window is being minimized or restored. |
ForegroundInternalVisualForDisabledCloseCommandButton | Gets or sets the foreground color when in "disabled state" for the internal close command button. |
ForegroundInternalVisualForDisabledMaximizeRestoreCommandButton | Gets or sets the foreground color when in "disabled state" for the internal maximize / restore command buttons. |
ForegroundInternalVisualForDisabledMinimizeCommandButton | Gets or sets the foreground color for the internal visual for "disabled state" minimize command button. |
ForegroundInternalVisualForHotCloseCommandButton | Gets or sets the foreground color when in "hot state" for the internal close command button. |
ForegroundInternalVisualForHotMaximizeRestoreCommandButton | Gets or sets the foreground color when in "hot state" for the internal maximize / restore command buttons. |
ForegroundInternalVisualForHotMinimizeCommandButton | Gets or sets the foreground color for the internal visual for "hot state" minimize command button. |
ForegroundInternalVisualForNormalCloseCommandButton | Gets or sets the foreground color when in "normal state" for the internal close command button. |
ForegroundInternalVisualForNormalMaximizeRestoreCommandButton | Gets or sets the foreground color when in "normal state" for the internal restore command button. |
ForegroundInternalVisualForNormalMinimizeCommandButton | Gets or sets the foreground color for the internal visual for "normal state" minimize command button. |
ForegroundInternalVisualForPressedCloseCommandButton | Gets or sets the foreground color when in "pressed state" for the internal close command button. |
ForegroundInternalVisualForPressedMaximizeRestoreCommandButton | Gets or sets the foreground color when in "pressed state" for the internal maximize / restore command buttons. |
ForegroundInternalVisualForPressedMinimizeCommandButton | Gets or sets the foreground color for the internal visual for "pressed state" minimize command button. |
FormBorderStyle | Gets border style of the form. |
GapBetweenCommandButtons | Gets or sets the gap between window chrome (to-right hand corner) command buttons. |
IsBeginResizeMessageRouted | Whether the message that starts a resize has already been passed on, so that a single gesture does not begin the resize twice. |
IsBorderDrawnWhenWindowIsMaximised | Gets or sets a value indicating whether the control draws the border when it (i.e. window) is currently in maximized mode. |
IsCloseBoxVisible | Gets or sets whether to show the Close button or not. |
IsControlBoxEnabled | Gets or sets a value indicating whether the control box enabled. |
IsDoubleClickOnTitlebarActionResultingInWindowStateChangeEnabled | Gets or sets a value indicating whether the window state is changed automatically when the user double-clicks on the title bar area. |
IsFormBackgroundPaintingInLinearGradientModeEnabled | Gets or sets a value indicating whether th Form background painting in linear gradient mode is enabled. |
IsFullChromeDisabled | Gets or sets whether to render the Form window without its chrome - i.e. it will render a border (with a customized border size if need be), but with no title bar and window command buttons on it) but at the same time being able to size and/or move the window. |
IsLocationAutoResettingAnchoredControlsEnabled | Gets or sets a value indicating whether the location of the child controls (that are anchored to the form) is automatically reset. |
IsTitlebarAndBorderBackgroundTransparent | Gets or sets a value indicating whether the border background is drawn transparent. |
IsTitlebarBackgroundTransparent | Gets or sets a value indicating whether the title bar background is drawn transparent. |
IsWindowControlBoxCommandsAutoCodeExecutionEnabled | Gets or sets a value indicating whether this component will execute the built-in code to execute when the user clicks on the control-box commands i.e. Minimize, Maximize / Restore and Close button clicks. |
IsWindowLocked | Gets or sets a value indicating whether the window is locked - i.e. user is not allowed to move the window. |
IsWindowResizingAllowed | Gets or sets a value indicating whether the control allows window resizing. |
MaximizeCommandDisabledButtonImage | Gets or sets the "disabled state" button image for the maximize command button. |
MaximizeCommandNormalButtonImage | Gets or sets the "normal state" button image for the maximize command button. |
MaximizeCommandOnHoverButtonImage | Gets or sets the "hover state" button image for the maximize command button. |
MaximizeCommandOnPushedButtonImage | Gets or sets the "pushed state" button image for the maximize command button. |
MinimizeCommandDisabledButtonImage | Gets or sets the "disabled state" button image for the minimize command button. |
MinimizeCommandNormalButtonImage | Gets or sets the "normal state" button image for the minimize command button. |
MinimizeCommandOnHoverButtonImage | Gets or sets the "hover state" button image for the minimize command button. |
MinimizeCommandOnPushedButtonImage | Gets or sets the "pushed state" button image for the minimize command button. |
ModernWindowChromeProvider | Gets or sets an instance of a custom window chrome renderer. |
RestoreCommandDisabledButtonImage | Gets or sets the "disabled state" button image for the restore command button. |
RestoreCommandNormalButtonImage | Gets or sets the "normal state" button image for the restore command button. |
RestoreCommandOnHoverButtonImage | Gets or sets the "hover state" button image for the restore command button. |
RestoreCommandOnPushedButtonImage | Gets or sets the "pushed state" button image for the restore command button. |
ShouldAnchorTitlebarChildControlsToRight | Gets or sets whether the control should automatically right align / right-anchor the TitlebarControls to the maximum allowable X-coordinate of the title bar. |
ShouldAutoResizeWindowHeightOnTitlebarHeightChange | Gets or sets a value indicating whether the component should automatically resize its window height upon title bar height having been changed. |
ShouldAutoResizeWindowSizeOnBorderWidthChange | Gets or sets a value indicating whether the component should automatically resize its window height and width upon border width having been changed. |
ShouldCycleWindowsHotKeyExecutionWhileWindowsKeyKeptPressed | Gets or sets a value indicating whether the control should cycle windows hot key execution while windows key is kept pressed. |
ShouldDrawBorderForWindowChromeCommandButtons | Gets or sets a value indicating whether the component should draw the border for the window chrome command buttons. |
ShouldDrawResizeGripper | Gets or sets a value indicating whether the control should draw resize gripper. |
ShouldDrawWindowCommandButtonsOnTopRightEdgeIgnoringBorderSizeWhenInMaximizedMode | Gets or sets a value indicating whether the control should draw window command buttons on top right edge, ignoring border size when in maximized window state mode. |
ShouldDrawWindowEdgesWithRoundedCorners | Gets or sets a value indicating whether the control should draw window edges with rounded corners. |
ShouldEnableContainerChildAutoManagement | Gets or sets a value indicating whether the control should enable automatic management of the container child control. |
ShouldEnableWindowsKeyHooks | Gets or sets a value indicating whether the control should enable its custom windows key hooks, in order to handle some of the Windows + hotkey keys. |
ShouldMaximizedWindowStateCoverTaskbarArea | Gets or sets a value indicating whether the Form should cover the task bar area when in maximized window state. |
ShouldRefreshChildrenWhenRepaintingNonClientArea | Gets or sets a value indicating whether the control should refresh children when repainting its non-client area. |
ShouldRefreshClientAreaUponMaximizedWindowState | Gets or sets a value indicating whether the control should refresh the client area upon maximized window state. |
ShouldRefreshNcAreaWhenInDesignMode | Gets or sets a value indicating whether the control should refresh its Non-client area when in design mode. |
ShouldRefreshNonClientAreaWithDockedChildControls | Gets or sets a value indicating whether the control should automatically refresh drawing sections for the non-client area when docked child controls are present in the client area. |
ShouldRenderAppIcon | Gets or sets a value indicating whether the control should render application icon. |
ShouldRenderAppIconUsingStandardSize | Gets or sets a value indicating whether the control should render application icon using standard size. |
ShouldRenderAppTitlebarText | Gets or sets a value indicating whether the control should render application title bar text. |
ShouldRenderWindowCommandButtonsInsideChromeBorderWhenInNormalWindowState | Gets or sets a value indicating whether the control should render window command buttons inside the chrome border when in normal window state mode. |
ShouldRepaintNonClientAreaWhenWindowIsBeingResized | Gets or sets a value indicating whether the control should repaint its non-client area when it (i.e. window) is being resized. |
ShouldRunBaseCore | Whether the base window procedure is allowed to run for the message being handled. It is cleared while the window handles a message itself and wants the default handling suppressed. |
TitleTextDrawingFormat | Gets or sets the title text drawing format. |
TitlebarControls | Gets (and helps set up) the child controls to be hosted on the title bar. |
TitlebarControlsHostLocation | Gets or sets the title bar controls host location in the title bar. |
TitlebarControlsHostLocationMaximumXOffset | Gets the title bar controls host location maximum X offset. |
TitlebarControlsHostLocationMaximumYOffset | Gets the title bar controls host location's maximum Y offset. |
TitlebarControlsHostMaximumWidth | Gets the maximum width of the title bar controls host. |
TitlebarControlsHostSize | Gets or sets the size of the title bar controls host. |
TitlebarText | Gets or sets the Window title text. |
TopMarginForDrawingWindowChromeCommandButtons | Gets or sets the top margin for drawing window chrome command buttons. |
Window | Gets the Window (i.e. ModernChromeWindow instance that hosts the custom drawn and managed chrome. |
WindowChromeBorderColor | Gets or sets the color of the window chrome border. |
WindowChromeCommandButtonSize | Gets or sets the size of the chrome command buttons. |
WindowChromeEndColor | Gets or sets the end color for drawing the window chrome background fill. |
WindowChromeGradientMode | Gets or sets the window chrome brush drawing gradient mode. |
WindowChromeStartColor | Gets or sets the start color for drawing the window chrome background fill. |
WindowChromeTheme | Gets or sets the window theme. |
WindowChromeTitleTextBrush | Gets or sets the window chrome title text brush. |
WindowChromeTitleTextBrushWhenTitlebarBackgroundIsTransparent | Gets or sets the window chrome title text brush when the title bar background is drawn transparent. |
WindowChromeTitleTextFont | Gets or sets the window chrome title text font. |
WindowContextMenu | Gets or sets the window context menu. |
WindowContextMenuCloseCommandImage | Gets or sets the window context menu close command image. |
WindowContextMenuCloseCommandTitle | Gets or sets the window context menu close command title. |
WindowContextMenuMaximizeCommandImage | Gets or sets the window context menu maximize command image. |
WindowContextMenuMaximizeCommandTitle | Gets or sets the window context menu maximize command title. |
WindowContextMenuMinimizeCommandImage | Gets or sets the window context menu minimize command image. |
WindowContextMenuMinimizeCommandTitle | Gets or sets the window context menu minimize command title. |
WindowContextMenuRestoreCommandImage | Gets or sets the window context menu restore command image. |
WindowContextMenuRestoreCommandTitle | Gets or sets the window context menu restore command title. |
WindowDockMode | Gets the current docking position of the window with rest to the desktop bounds of the current screen. |
WindowEdgeCornerRadius | Gets or sets the window edge corner radius. |
Dispose | Releases the resources held by this ModernChromeWindow. |
OnActivated | Raises the Activated event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnClientSizeChanged | Raises the ClientSizeChanged event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnClosed | Raises the Closed event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnClosing | Raises the Closing event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnDeactivate | Raises the Deactivate event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnDpiChanged | Raises the DpiChanged event. ModernChromeWindow overrides it so the chrome is rebuilt for the new scale factor when the window is dragged to another display. |
OnFormClosing | Raises the FormClosing event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnHandleCreated | Raises the HandleCreated event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnKeyDown | Raises the KeyDown event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnKeyUp | Raises the KeyUp event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnLoad | Raises the Load event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnMouseMove | Raises the MouseMove event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnMouseUp | Raises the MouseUp event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnPaint | Raises the Paint event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnPaintBackground | Raises the PaintBackground event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnShown | Raises the Shown event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
OnVisibleChanged | Raises the VisibleChanged event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior. |
PerformExtendedNonClientRefresh | // Gets or sets the color of the window chrome title bar border. // |
PositionAndSizeWindow | Sets the window bounds to a deterministic bounds. |
ProcessCmdKey | Gives this control first sight of a command key, before the menu system and the parent form see it. |
RefreshWindowNonClient | Refreshes the window non-client area sections. |
SetBoundsCore | Sets the bounds of this control, applying the constraints it imposes on its own size. |
SetClientSizeCore | Sets the client size, allowing for the custom chrome, so that asking for a client area of a given size actually yields one. |
UpdateWindowTitleText | Updates the window title text. |
WndProc | Processes the Windows messages sent to this control's window. |
WindowChromeBorderSizeChanged | Raised when the window border size is changed. |
WindowChromeThemeChanged | Occurs when the window chrome theme changed. |
WindowChromeTitlebarHeightChanged | Raised when the window title bar height is changed. |
WindowCloseRequested | Occurs when window close is requested. |
WindowIconClicked | Occurs when window icon has been clicked. |
WindowMinimizeRequested | Occurs when window minimize is requested. |
WindowRestoreOrMaximizeRequested | Occurs when window restore or maximize is requested. |
WindowStateChanged | Occurs when the window state has changed. |
Constructors
ModernChromeWindow
Initializes a new instance of the ModernChromeWindow class.
Properties
AppIconLeftMargin
Gets or sets the application icon left margin.
BackgroundBrush
Gets or sets the Form background brush.
BackgroundDisabledCloseCommandButton
Gets or sets the background brush when in "disabled state" for the internal close command button.
BackgroundDisabledMaximizeRestoreCommandButton
Gets or sets the background brush for the "disabled state" for drawing the maximize / restore command buttons.
BackgroundDisabledMinimizeCommandButton
Gets or sets the background brush for "disabled state" minimize command button.
BackgroundHotCloseCommandButton
Gets or sets the background brush when in "hot state" for the internal close command button.
BackgroundHotMaximizeRestoreCommandButton
Gets or sets the background brush for the "hot state" for drawing the maximize / restore command buttons.
BackgroundHotMinimizeCommandButton
Gets or sets the background brush for "hot state" minimize command button.
BackgroundNormalCloseCommandButton
Gets or sets the background brush when in "normal state" for the internal close command button.
BackgroundNormalMaximizeRestoreCommandButton
Gets or sets the background brush for the "normal state" for drawing the maximize / restore command buttons.
BackgroundNormalMinimizeCommandButton
Gets or sets the background brush for "normal state" minimize command button.
BackgroundPressedCloseCommandButton
Gets or sets the background brush when in "pressed state" for the internal close command button.
BackgroundPressedMaximizeRestoreCommandButton
Gets or sets the background brush for the "pressed state" for drawing the maximize / restore command buttons.
BackgroundPressedMinimizeCommandButton
Gets or sets the background brush for "pressed state" minimize command button.
BorderColorDisabledCloseCommandButton
Gets or sets the border color when in "disabled state" for the close command button.
BorderColorDisabledMaximiseRestoreCommandButton
Gets or sets the border color when in "disabled state" for the maximize/restore command buttons.
BorderColorDisabledMinimizeCommandButton
Gets or sets the border color when in "disabled state" for the minimize command button.
BorderColorHotCloseCommandButton
Gets or sets the border color when in "hot state" for the close command button.
BorderColorHotMaximiseRestoreCommandButton
Gets or sets the border color when in "hot state" for the maximize / restore command buttons.
BorderColorHotMinimizeCommandButton
Gets or sets the border color when in "hot state" for the minimize command button.
BorderColorNormalCloseCommandButton
Gets or sets the border color when in "normal state" for the close command button.
BorderColorNormalMaximiseRestoreCommandButton
Gets or sets the border color when in "normal state" for the maximize/restore command buttons.
BorderColorNormalMinimizeCommandButton
Gets or sets the border color when in "normal state" for the minimize command button.
BorderColorPressedCloseCommandButton
Gets or sets the border color when in "pressed state" for the close command button.
BorderColorPressedMaximiseRestoreCommandButton
Gets or sets the border color when in "pressed state" for the maximize / restore command buttons.
BorderColorPressedMinimizeCommandButton
Gets or sets the border color when in "pressed state" for the minimize command button.
ChromeBorderSize
Gets or sets the size of the Window chrome border.
ChromeTitlebarHeight
Gets or sets the height of the window chrome title bar.
CloseCommandDisabledButtonImage
Gets or sets the "disabled state" button image for the close command button.
CloseCommandNormalButtonImage
Gets or sets the "normal state" button image for the close command button.
CloseCommandOnHoverButtonImage
Gets or sets the "hover state" button image for the close command button.
CloseCommandOnPushedButtonImage
Gets or sets the "pushed state" button image for the close command button.
ContainerChild
Gets or sets the main container child.
Value. The main container child.
CreateParams
Gets the parameters used to create this control's window, with the window styles this control needs added to them.
DefaultNormalWindowSize
Gets or sets the default size of the normal window.
Value. The default size of the normal window.
DisplayRectangle
The area inside the window available to its content, which is the client area less the custom chrome this window draws for itself.
EnableMinimizeRestoreActionUponTaskbarIconClick
Gets or sets a value indicating whether the control should enable the feature of automatically responding to either minimize or restore (as the case may be) upon upon the user clicking on the Window's taskbar icon.
Do not try to update the value of this property after the window's handle creation - and never use it during run-time.
EnableMinimizeRestoreAnimation
Gets or sets a value indicating whether the control performs animation while the window is being minimized or restored.
Do not try to update the value of this property after the window's handle creation - and never use it during run-time.
ForegroundInternalVisualForDisabledCloseCommandButton
Gets or sets the foreground color when in "disabled state" for the internal close command button.
ForegroundInternalVisualForDisabledMaximizeRestoreCommandButton
Gets or sets the foreground color when in "disabled state" for the internal maximize / restore command buttons.
ForegroundInternalVisualForDisabledMinimizeCommandButton
Gets or sets the foreground color for the internal visual for "disabled state" minimize command button.
ForegroundInternalVisualForHotCloseCommandButton
Gets or sets the foreground color when in "hot state" for the internal close command button.
ForegroundInternalVisualForHotMaximizeRestoreCommandButton
Gets or sets the foreground color when in "hot state" for the internal maximize / restore command buttons.
ForegroundInternalVisualForHotMinimizeCommandButton
Gets or sets the foreground color for the internal visual for "hot state" minimize command button.
ForegroundInternalVisualForNormalCloseCommandButton
Gets or sets the foreground color when in "normal state" for the internal close command button.
ForegroundInternalVisualForNormalMaximizeRestoreCommandButton
Gets or sets the foreground color when in "normal state" for the internal restore command button.
ForegroundInternalVisualForNormalMinimizeCommandButton
Gets or sets the foreground color for the internal visual for "normal state" minimize command button.
ForegroundInternalVisualForPressedCloseCommandButton
Gets or sets the foreground color when in "pressed state" for the internal close command button.
ForegroundInternalVisualForPressedMaximizeRestoreCommandButton
Gets or sets the foreground color when in "pressed state" for the internal maximize / restore command buttons.
ForegroundInternalVisualForPressedMinimizeCommandButton
Gets or sets the foreground color for the internal visual for "pressed state" minimize command button.
FormBorderStyle
Gets border style of the form.
GapBetweenCommandButtons
Gets or sets the gap between window chrome (to-right hand corner) command buttons.
IsBeginResizeMessageRouted
Whether the message that starts a resize has already been passed on, so that a single gesture does not begin the resize twice.
IsBorderDrawnWhenWindowIsMaximised
Gets or sets a value indicating whether the control draws the border when it (i.e. window) is currently in maximized mode.
IsCloseBoxVisible
Gets or sets whether to show the Close button or not.
IsControlBoxEnabled
Gets or sets a value indicating whether the control box enabled.
IsDoubleClickOnTitlebarActionResultingInWindowStateChangeEnabled
Gets or sets a value indicating whether the window state is changed automatically when the user double-clicks on the title bar area.
IsFormBackgroundPaintingInLinearGradientModeEnabled
Gets or sets a value indicating whether th Form background painting in linear gradient mode is enabled.
BackgroundBrush property to a custom Brush instance, and the component will paint the background using that brush.IsFullChromeDisabled
Gets or sets whether to render the Form window without its chrome - i.e. it will render a border (with a customized border size if need be), but with no title bar and window command buttons on it) but at the same time being able to size and/or move the window.
IsLocationAutoResettingAnchoredControlsEnabled
Gets or sets a value indicating whether the location of the child controls (that are anchored to the form) is automatically reset.
IsTitlebarAndBorderBackgroundTransparent
Gets or sets a value indicating whether the border background is drawn transparent.
IsTitlebarBackgroundTransparent
Gets or sets a value indicating whether the title bar background is drawn transparent.
IsWindowControlBoxCommandsAutoCodeExecutionEnabled
Gets or sets a value indicating whether this component will execute the built-in code to execute when the user clicks on the control-box commands i.e. Minimize, Maximize / Restore and Close button clicks.
IsWindowLocked
Gets or sets a value indicating whether the window is locked - i.e. user is not allowed to move the window.
IsWindowResizingAllowed
Gets or sets a value indicating whether the control allows window resizing.
MaximizeCommandDisabledButtonImage
Gets or sets the "disabled state" button image for the maximize command button.
MaximizeCommandNormalButtonImage
Gets or sets the "normal state" button image for the maximize command button.
MaximizeCommandOnHoverButtonImage
Gets or sets the "hover state" button image for the maximize command button.
MaximizeCommandOnPushedButtonImage
Gets or sets the "pushed state" button image for the maximize command button.
MinimizeCommandDisabledButtonImage
Gets or sets the "disabled state" button image for the minimize command button.
MinimizeCommandNormalButtonImage
Gets or sets the "normal state" button image for the minimize command button.
MinimizeCommandOnHoverButtonImage
Gets or sets the "hover state" button image for the minimize command button.
MinimizeCommandOnPushedButtonImage
Gets or sets the "pushed state" button image for the minimize command button.
ModernWindowChromeProvider
Gets or sets an instance of a custom window chrome renderer.
Value. The window chrome renderer.
IModernWindowChromeProvider. Once this is set, the component will draw the chrome border and its contents (title bar, command buttons etc.) as may be drawn by the custom implementation.
The component will raise events whenever there are any "non-client area" events that needs propagating to the custom implementation so that it can handle it to respond to actions such as clicking a button, etc.
RestoreCommandDisabledButtonImage
Gets or sets the "disabled state" button image for the restore command button.
RestoreCommandNormalButtonImage
Gets or sets the "normal state" button image for the restore command button.
RestoreCommandOnHoverButtonImage
Gets or sets the "hover state" button image for the restore command button.
RestoreCommandOnPushedButtonImage
Gets or sets the "pushed state" button image for the restore command button.
ShouldAnchorTitlebarChildControlsToRight
Gets or sets whether the control should automatically right align / right-anchor the TitlebarControls to the maximum allowable X-coordinate of the title bar.
ShouldAutoResizeWindowHeightOnTitlebarHeightChange
Gets or sets a value indicating whether the component should automatically resize its window height upon title bar height having been changed.
ShouldAutoResizeWindowSizeOnBorderWidthChange
Gets or sets a value indicating whether the component should automatically resize its window height and width upon border width having been changed.
ShouldCycleWindowsHotKeyExecutionWhileWindowsKeyKeptPressed
Gets or sets a value indicating whether the control should cycle windows hot key execution while windows key is kept pressed.
ShouldDrawBorderForWindowChromeCommandButtons
Gets or sets a value indicating whether the component should draw the border for the window chrome command buttons.
ShouldDrawResizeGripper
Gets or sets a value indicating whether the control should draw resize gripper.
ShouldDrawWindowCommandButtonsOnTopRightEdgeIgnoringBorderSizeWhenInMaximizedMode
Gets or sets a value indicating whether the control should draw window command buttons on top right edge, ignoring border size when in maximized window state mode.
ShouldDrawWindowEdgesWithRoundedCorners
Gets or sets a value indicating whether the control should draw window edges with rounded corners.
ShouldEnableContainerChildAutoManagement
Gets or sets a value indicating whether the control should enable automatic management of the container child control.
ShouldEnableWindowsKeyHooks
Gets or sets a value indicating whether the control should enable its custom windows key hooks, in order to handle some of the Windows + hotkey keys.
ShouldMaximizedWindowStateCoverTaskbarArea
Gets or sets a value indicating whether the Form should cover the task bar area when in maximized window state.
ShouldRefreshChildrenWhenRepaintingNonClientArea
Gets or sets a value indicating whether the control should refresh children when repainting its non-client area.
ShouldRefreshClientAreaUponMaximizedWindowState
Gets or sets a value indicating whether the control should refresh the client area upon maximized window state.
ShouldRefreshNcAreaWhenInDesignMode
Gets or sets a value indicating whether the control should refresh its Non-client area when in design mode.
ShouldRefreshNonClientAreaWithDockedChildControls
Gets or sets a value indicating whether the control should automatically refresh drawing sections for the non-client area when docked child controls are present in the client area.
ShouldRenderAppIcon
Gets or sets a value indicating whether the control should render application icon.
ShouldRenderAppIconUsingStandardSize
Gets or sets a value indicating whether the control should render application icon using standard size.
ShouldRenderAppTitlebarText
Gets or sets a value indicating whether the control should render application title bar text.
ShouldRenderWindowCommandButtonsInsideChromeBorderWhenInNormalWindowState
Gets or sets a value indicating whether the control should render window command buttons inside the chrome border when in normal window state mode.
ShouldRepaintNonClientAreaWhenWindowIsBeingResized
Gets or sets a value indicating whether the control should repaint its non-client area when it (i.e. window) is being resized.
ShouldRunBaseCore
Whether the base window procedure is allowed to run for the message being handled. It is cleared while the window handles a message itself and wants the default handling suppressed.
TitleTextDrawingFormat
Gets or sets the title text drawing format.
Value. The title text drawing format.
TitlebarControls
Gets (and helps set up) the child controls to be hosted on the title bar.
TitlebarControlsHostLocation
Gets or sets the title bar controls host location in the title bar.
TitlebarControlsHostLocationMaximumXOffset
Gets the title bar controls host location maximum X offset.
TitlebarControlsHostLocationMaximumYOffset
Gets the title bar controls host location's maximum Y offset.
TitlebarControlsHostMaximumWidth
Gets the maximum width of the title bar controls host.
TitlebarControlsHostSize
Gets or sets the size of the title bar controls host.
TitlebarText
Gets or sets the Window title text.
TopMarginForDrawingWindowChromeCommandButtons
Gets or sets the top margin for drawing window chrome command buttons.
Window
Gets the Window (i.e. ModernChromeWindow instance that hosts the custom drawn and managed chrome.
WindowChromeBorderColor
Gets or sets the color of the window chrome border.
WindowChromeCommandButtonSize
Gets or sets the size of the chrome command buttons.
WindowChromeEndColor
Gets or sets the end color for drawing the window chrome background fill.
WindowChromeGradientMode
Gets or sets the window chrome brush drawing gradient mode.
WindowChromeStartColor
Gets or sets the start color for drawing the window chrome background fill.
WindowChromeTheme
Gets or sets the window theme.
WindowChromeTitleTextBrush
Gets or sets the window chrome title text brush.
WindowChromeTitleTextBrushWhenTitlebarBackgroundIsTransparent
Gets or sets the window chrome title text brush when the title bar background is drawn transparent.
IsTitlebarBackgroundTransparent to true.WindowChromeTitleTextFont
Gets or sets the window chrome title text font.
WindowDockMode
Gets the current docking position of the window with rest to the desktop bounds of the current screen.
WindowEdgeCornerRadius
Gets or sets the window edge corner radius.
Methods
Dispose
Releases the resources held by this ModernChromeWindow.
- disposing
- true when called from
Dispose; false when called from the finalizer.
OnActivated
Raises the Activated event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnClientSizeChanged
Raises the ClientSizeChanged event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnClosed
Raises the Closed event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnClosing
Raises the Closing event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnDeactivate
Raises the Deactivate event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnDpiChanged
Raises the DpiChanged event. ModernChromeWindow overrides it so the chrome is rebuilt for the new scale factor when the window is dragged to another display.
- e
- The event data.
OnFormClosing
Raises the FormClosing event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnHandleCreated
Raises the HandleCreated event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnKeyDown
Raises the KeyDown event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnKeyUp
Raises the KeyUp event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnLoad
Raises the Load event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseMove
Raises the MouseMove event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseUp
Raises the MouseUp event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnPaint
Raises the Paint event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnPaintBackground
Raises the PaintBackground event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnShown
Raises the Shown event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnVisibleChanged
Raises the VisibleChanged event. ModernChromeWindow overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
PerformExtendedNonClientRefresh
// Gets or sets the color of the window chrome title bar border. //
PositionAndSizeWindow
Sets the window bounds to a deterministic bounds.
- left
- The left location point.
- top
- The top location point.
- width
- The form width.
- height
- The form height.
- performActionNow
- The request will try to instantly perform the action rather than store the details and perform it once the form/window has been successfully shown.
ProcessCmdKey
Gives this control first sight of a command key, before the menu system and the parent form see it.
RefreshWindowNonClient
Refreshes the window non-client area sections.
- shouldPerformExtendedRefresh
- if set to true the control will perform a slightly time consuming extended refresh.
SetBoundsCore
Sets the bounds of this control, applying the constraints it imposes on its own size.
SetClientSizeCore
Sets the client size, allowing for the custom chrome, so that asking for a client area of a given size actually yields one.
- x
- The requested client width.
- y
- The requested client height.
UpdateWindowTitleText
Updates the window title text.
- titlebarText
- The titlebar text.
WndProc
Processes the Windows messages sent to this control's window.
Events
WindowChromeBorderSizeChanged
Raised when the window border size is changed.
WindowChromeThemeChanged
Occurs when the window chrome theme changed.
WindowChromeTitlebarHeightChanged
Raised when the window title bar height is changed.
WindowCloseRequested
Occurs when window close is requested.
WindowIconClicked
Occurs when window icon has been clicked.
WindowMinimizeRequested
Occurs when window minimize is requested.
WindowRestoreOrMaximizeRequested
Occurs when window restore or maximize is requested.
WindowStateChanged
Occurs when the window state has changed.