dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.28k stars 1.76k forks source link

Can Webview2(Microsoft.UI.Xaml.Controls.WebView2) expose ZoomFactor property? #24593

Open ScofieldOY opened 2 months ago

ScofieldOY commented 2 months ago

Description

Windows We used Webview2 in Microsoft.UI.Xaml.Controls.WebView2, but we are looking forward to using ZoomFactor property like CoreWebView2Controller.ZoomFactor property, because this property only in WebView2 .NET 1.0.2651.64. Is that possible to expose this property in Microsoft.UI.Xaml.Controls.WebView2 instead of changing corewebview2?

https://learn.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2controller?view=webview2-dotnet-1.0.2651.64 We used: https://learn.microsoft.com/en-us/dotnet/api/Microsoft.UI.Xaml.Controls.WebView2

Public API Changes

n/a

Intended Use-Case

we want to support browser zoom in/out in Microsoft.UI.Xaml.Controls.WebView2, instead of inject js code.

MartyIX commented 2 months ago

There is this PR that upgrades webview2: https://github.com/dotnet/maui/pull/24329. You can upvote the PR :)