Skip to content

Commit c686e1d

Browse files
abbychoiitochukwuIbeEkeocha
authored andcommitted
Merge branch 'api-IsNonClientRegionSupportEnabled-draft' of https://github.com/MicrosoftEdge/WebView2Feedback into api-IsNonClientRegionSupportEnabled-draft
2 parents 0d52d51 + 8c924f2 commit c686e1d

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

specs/IsNonClientRegionSupportEnabled.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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/"/>
8282
public MainWindow()
83-
{
84-
InitializeComponent();
85-
webView.NavigationStarting += SetNonClientRegionSupport;
86-
}
83+
{
84+
InitializeComponent();
85+
webView.NavigationStarting += SetNonClientRegionSupport;
86+
}
8787
8888
private 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
107108
Non-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`.
128129
See [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)]
134136
interface 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#
157161
namespace Microsoft.Web.WebView2.Core
158162
{

0 commit comments

Comments
 (0)