Hello,
I can't find much in the way of zoom properties. Closest I can get is a Boolean that controls whether zooming is allowed by the user (e.WebView.CoreWebView2.Settings.IsZoomControlEnabled).
On the MAUI Windows platform, BlazorWebView
corresponds to the WebView2
control based on WinUI3
.
In general, we can use ZoomFactor Property
to control scaling, you can refer to CoreWebView2Controller.ZoomFactor Property.
However, this API has not yet been exposed to WinUI3 applications. You could keep following this issue: WebView2: Expose more functionality from CoreWebView2Controller #5772.
This means that it is currently not feasible to listen to zoom events and save or modify zoom value on MAUI.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.