This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Frameless Window
mattkol edited this page Jan 28, 2020
·
2 revisions
- Available on Windows ONLY (Tested on Windows 10)
A frameless/borderless window is a window that has no titlebar.
To make Chromely window frameless:
var config = ChromelyConfiguration
.Create()
.....
.WithHostFlag(HostFlagKey.Frameless, true)
.....
By default a frameless window is draggable and resizable. To change these options, developers need to register a custom IFramelessOptions.
var config = ChromelyConfiguration
.Create()
.....
.WithFramelessOptions(new CustomFramelessOptions())
.....
Property | Description | Comment |
---|---|---|
Height | Height of the drag region | Normal height is 28 device units (pixels) common for windows. This is the default. |
NoDragWidth | No drag width of the drag window (right-side buttons). | The region for Windows buttons - Minimize, Maximize, Restore, Close Default width is 140px. |
WhiteStripeHeight | White stripe height stripping due to WS_SIZEBOX option | https://stackoverflow.com/questions/39731497/create-window-without-titlebar-with-resizable-border-and-without-bogus-6px-whit Default height is 8px. |
IsDraggable | Sets true of false for dragging | Default is true. |
IsResizable | Sets true of false for resizing | Default is true. |
- Window is not resizable at the top border.
- Only supported in Windows 10. Developers can try it on Windows 7 and below and share their findings.
A demo of Windows 10 frameless titlebar style can be found at Frameless Windows Demo.
Chromely
Getting Started
The Basics
Digging Deeper
- Sub-Process
- Infrastructure
- Restful Resources
- Register Resource Assemblies
- Custom Local Resource Handling
- Custom Scheme Handling
- Expose .NET class to JavaScript
- Generic Message Routing
- Real-time with Websocket
- External Url Registration
Angular - React - Vue