Skip to content

Commit 0d52d51

Browse files
committed
Update IsNonClientRegionSupportEnabled.md
1 parent 9ca9eae commit 0d52d51

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

specs/IsNonClientRegionSupportEnabled.md

Lines changed: 6 additions & 8 deletions
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())
@@ -74,8 +75,10 @@ ScenarioNonClientRegionSupport::ScenarioNonClientRegionSupport(AppWindow* appWin
7475
&m_navigationStartingToken));
7576
}
7677
```
77-
78+
## .NET C#
7879
```c#
80+
// WebView2 control is defined in the xaml
81+
// <wv2:WebView2 x:Name="webView" Source="https://www.microsoft.com/"/>
7982
public MainWindow()
8083
{
8184
InitializeComponent();
@@ -109,11 +112,8 @@ Non-client regions are HTML elements that are marked with the css style `app-reg
109112
```html
110113
<!DOCTYPE html>
111114
<body>
112-
<div style="app-region:drag">Drag Region</h1>
113-
</div>
114-
<div>
115-
<h1 style="app-region:no-drag">No-drag Region</h1>
116-
</div>
115+
<div style="app-region:drag">Drag Region</div>
116+
<div style="app-region:no-drag">No-drag Region</div>
117117
</body>
118118
<html>
119119
```
@@ -127,8 +127,6 @@ even if the `IsNonClientRegionSupportEnabled` setting is `FALSE`.
127127
# API Notes
128128
See [API Details](#api-details) section below for API reference.
129129

130-
131-
132130
# API Details
133131
```cpp
134132
/// This is the ICoreWebView2Settings Staging interface.

0 commit comments

Comments
 (0)