microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.32k stars 676 forks source link

WebView2: Expose more functionality from CoreWebView2Controller #5772

Open mlynch opened 3 years ago

mlynch commented 3 years ago

Proposal: Expose more properties and methods from CoreWebView2Controller

Per the conversation on the WebView2Feedback repo, sounds like WinUI3 is missing some properties from CoreWebView2Controller that have been since exposed on WPF and Winforms. In this particular case, the ZoomFactor property was missing which is needed for programatic zooming in the web view.

Rationale

These properties are being exposed in other Windows frameworks and, based on the conversation on the above issue, the intention is for those same properties to be exposed on the WebView2 control in WinUI3

asklar commented 3 years ago

related: microsoft/windowsappsdk#1170 in the bucket of "need to expose more of the underlying webview2"

Jimex commented 1 year ago

Couldn't agree more, the ZoomFactor property is a crucial feature especially when we are developing the container for the web apps.

HO-COOH commented 10 months ago

It's been 2 years and how can wpf has this api but not winui?

JovialPeon commented 6 months ago

Any word on this?

Without ZoomFactor you can only use Scale, which takes the final rendering and scales that. This results in blurry and unreadable text. ZoomFactor corrects this by performing a re-render at the proper size.