다음을 통해 공유


CoreWebView2Settings.IsNonClientRegionSupportEnabled Property

Definition

The IsNonClientRegionSupportEnabled property enables web pages to use the app-region CSS style. 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.

public bool IsNonClientRegionSupportEnabled { get; set; }
member this.IsNonClientRegionSupportEnabled : bool with get, set
Public Property IsNonClientRegionSupportEnabled As Boolean

Property Value

Applies to