AvaloniaVSCode
AvaloniaVSCode copied to clipboard
[Feature] Built-in amplifier and reducer of window preview.
Is your feature request related to a problem? Please describe.
Hello everyone The other day I encountered a situation where I needed to slightly reduce the preview of window due to the fact that the preview was not in the visual studio tab.
Describe the solution you'd like
Window preview resizing in pressed Ctrl
by scrolling mouse wheel
Describe alternatives you've considered
I noticed this preview function when working with extensions for Visual Studio and Rider.
Additional context
In other words, this is a request to scale/zoom the Preview pane's contents with CTRL
+ +
/Scrollwheel_Up
to zoom in (increase scale) or CTRL
+ -
/Scrollwheel_Down
to zoom out (decrease scale)
Thanks for reporting the issue. We have it in the backlog and we will implement it soon
https://github.com/AvaloniaUI/AvaloniaVSCode/assets/77734001/dcd1ab09-2435-401c-b1b4-945d4dafab18
Hi @prashantvc.
I've been thinking about zooming in and out of the preview. And I encountered such a problem as the size of the window, is it possible to get the width and height of the window from the axaml and add it to the HTML code? Because the iframe element cannot be rendered depending on its content.
@SignalMQ it was possible in the previous version of the extension. Due to changes in how previewer is rendered from the Avalonia library I had to use preview as is right now. But be sure the functionality you are looking for will return soon
You can find the related preview code here https://github.com/AvaloniaUI/Avalonia/tree/master/src/Avalonia.DesignerSupport/Remote/HtmlTransport/webapp