AvaloniaVSCode icon indicating copy to clipboard operation
AvaloniaVSCode copied to clipboard

[Feature] Built-in amplifier and reducer of window preview.

Open SignalMQ opened this issue 1 year ago • 4 comments

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

image

SignalMQ avatar Dec 02 '23 22:12 SignalMQ

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)

BinToss avatar Dec 15 '23 07:12 BinToss

Thanks for reporting the issue. We have it in the backlog and we will implement it soon

prashantvc avatar Jan 04 '24 10:01 prashantvc

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 avatar Jan 30 '24 17:01 SignalMQ

@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

prashantvc avatar Feb 01 '24 07:02 prashantvc