nonClientRegionSupportEnabled property
Enables web pages to use the app-region CSS style.
Disabling/Enabling the nonClientRegionSupportEnabled takes effect after the next navigation.
When this property is true, then all the non-client region features will be enabled:
Draggable Regions will be enabled, they are regions on a webpage that are marked with the CSS attribute app-region: drag/no-drag.
When set to drag, these regions will be treated like the window's title bar,
supporting dragging of the entire WebView and its host app window;
the system menu shows upon right click, and a double click will trigger maximizing/restoration of the window size.
When set to false, all non-client region support will be disabled.
The app-region CSS style will be ignored on web pages.
The default value is false.
Officially Supported Platforms/Implementations:
- Windows WebView2 1.0.2420.47+ (Official API - ICoreWebView2Settings9.put_IsNonClientRegionSupportEnabled)
Implementation
bool? nonClientRegionSupportEnabled;