@@ -33,6 +33,7 @@ When set to `FALSE`, then all non-client region support will be disabled.
3333This example enables non-client region support for all pages on www.microsoft.com .
3434Pages on other origins will not be trusted to use this feature.
3535
36+ ## Win32 C++
3637``` cpp
3738ScenarioNonClientRegionSupport::ScenarioNonClientRegionSupport (AppWindow* appWindow)
3839 : m_appWindow(appWindow), m_webView(appWindow->GetWebView())
@@ -75,6 +76,7 @@ ScenarioNonClientRegionSupport::ScenarioNonClientRegionSupport(AppWindow* appWin
7576}
7677```
7778
79+ ## .NET and WinRT
7880```c#
7981public MainWindow()
8082 {
@@ -100,6 +102,7 @@ private void SetNonClientRegionSupport(CoreWebView2 sender, CoreWebView2Navigati
100102 }
101103}
102104```
105+
103106## Declaring Non-client App Regions
104107Non-client regions are HTML elements that are marked with the css style ` app-region ` .
105108* Draggable regions can be declared through the values ` drag ` or ` no-drag ` .
@@ -130,8 +133,8 @@ See [API Details](#api-details) section below for API reference.
130133
131134
132135# API Details
136+ ## Win32 C++
133137``` cpp
134- // / This is the ICoreWebView2Settings Staging interface.
135138[uuid(436CA5E2-2D50-43C7-9735 -E760F299439E), object, pointer_default(unique)]
136139interface ICoreWebView2Settings12 : ICoreWebView2Settings11 {
137140 /// The ` IsNonClientRegionSupportEnabled ` property enables web pages to use the
@@ -154,7 +157,9 @@ interface ICoreWebView2Settings12 : ICoreWebView2Settings11 {
154157 /// Set the IsNonClientRegionSupportEnabled property
155158 [ propput] HRESULT IsNonClientRegionSupportEnabled([ in] BOOL enabled);
156159}
160+ ```
157161
162+ ## .NET and WinRT
158163``` c#
159164namespace Microsoft .Web .WebView2 .Core
160165{
0 commit comments