Share via


CoreWebView2Settings.IsPinchZoomEnabled Property

Definition

Determines the ability of the end users to use pinching motions on touch input enabled devices to scale the web content in the WebView2.

public bool IsPinchZoomEnabled { get; set; }
member this.IsPinchZoomEnabled : bool with get, set
Public Property IsPinchZoomEnabled As Boolean

Property Value

Examples

WebViewSettings.IsPinchZoomEnabled = !WebViewSettings.IsPinchZoomEnabled;

Remarks

When disabled, the end users cannot use pinching motions on touch input enabled devices to scale the web content in the WebView2. The default value is true. Pinch-zoom, referred to as "Page Scale" zoom, is performed as a post-rendering step, it changes the page scale factor property and scales the surface the web page is rendered onto when user performs a pinch zooming action. It does not change the layout but rather changes the viewport and clips the web content, the content outside of the viewport isn't visible onscreen and users can't reach this content using mouse. This API only affects the Page Scale zoom and has no effect on the existing browser zoom properties (IsZoomControlEnabled and ZoomFactor) or other end user mechanisms for zooming.

Applies to