@@ -80,10 +80,10 @@ ScenarioNonClientRegionSupport::ScenarioNonClientRegionSupport(AppWindow* appWin
8080// WebView2 control is defined in the xaml
8181// <wv2:WebView2 x:Name="webView" Source="https://www.microsoft.com/"/>
8282public MainWindow()
83- {
84- InitializeComponent();
85- webView.NavigationStarting += SetNonClientRegionSupport;
86- }
83+ {
84+ InitializeComponent();
85+ webView.NavigationStarting += SetNonClientRegionSupport;
86+ }
8787
8888private void SetNonClientRegionSupport(CoreWebView2 sender, CoreWebView2NavigationStartingEventArgs args)
8989{
@@ -103,6 +103,7 @@ private void SetNonClientRegionSupport(CoreWebView2 sender, CoreWebView2Navigati
103103 }
104104}
105105```
106+
106107## Declaring Non-client App Regions
107108Non-client regions are HTML elements that are marked with the css style ` app-region ` .
108109* Draggable regions can be declared through the values ` drag ` or ` no-drag ` .
@@ -128,8 +129,9 @@ even if the `IsNonClientRegionSupportEnabled` setting is `FALSE`.
128129See [ API Details] ( #api-details ) section below for API reference.
129130
130131# API Details
132+ ## Win32 C++
131133``` cpp
132- // / This is the ICoreWebView2Settings Staging interface.
134+
133135[uuid(436CA5E2-2D50-43C7-9735 -E760F299439E), object, pointer_default(unique)]
134136interface ICoreWebView2Settings12 : ICoreWebView2Settings11 {
135137 /// The ` IsNonClientRegionSupportEnabled ` property enables web pages to use the
@@ -152,7 +154,9 @@ interface ICoreWebView2Settings12 : ICoreWebView2Settings11 {
152154 /// Set the IsNonClientRegionSupportEnabled property
153155 [ propput] HRESULT IsNonClientRegionSupportEnabled([ in] BOOL enabled);
154156}
157+ ```
155158
159+ ## .NET and WinRT
156160``` c#
157161namespace Microsoft .Web .WebView2 .Core
158162{
0 commit comments