Skip to content

Commit 8c924f2

Browse files
authored
Update IsNonClientRegionSupportEnabled.md
1 parent 9ca9eae commit 8c924f2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

specs/IsNonClientRegionSupportEnabled.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ When set to `FALSE`, then all non-client region support will be disabled.
3333
This example enables non-client region support for all pages on www.microsoft.com.
3434
Pages on other origins will not be trusted to use this feature.
3535

36+
## Win32 C++
3637
```cpp
3738
ScenarioNonClientRegionSupport::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#
7981
public MainWindow()
8082
{
@@ -100,6 +102,7 @@ private void SetNonClientRegionSupport(CoreWebView2 sender, CoreWebView2Navigati
100102
}
101103
}
102104
```
105+
103106
## Declaring Non-client App Regions
104107
Non-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)]
136139
interface 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#
159164
namespace Microsoft.Web.WebView2.Core
160165
{

0 commit comments

Comments
 (0)