CoreWebView2Settings.IsNonClientRegionSupportEnabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The IsNonClientRegionSupportEnabled property enables web pages to use the app-region CSS style.
public bool IsNonClientRegionSupportEnabled { get; set; }
member this.IsNonClientRegionSupportEnabled : bool with get, set
Public Property IsNonClientRegionSupportEnabled As Boolean
Property Value
Remarks
Disabling/Enabling the IsNonClientRegionSupportEnabled takes effect after the next navigation. Defaults to false.
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.