AvaloniaVSCode icon indicating copy to clipboard operation
AvaloniaVSCode copied to clipboard

[WIP] Previewer improvement

Open lextm opened this issue 4 months ago • 2 comments

Pending on https://github.com/AvaloniaUI/AvaloniaVSCode/pull/172

Changes in this pull request are,

  • Fix typos.
  • Revise the working directory of dotnet build.
  • Add loading and error pages.
  • Add updateXamlResultMessageId handling to trigger the right events.

lextm avatar Aug 27 '25 20:08 lextm

I do some research on the preview scaling today and find that by utilizing the clientRenderInfoMessage we can get a high quality zoomed in picture (as what it is in VS or Rider), rather than a blurred one produced by css transform.

But with this approach, we need to modify the avalonia designer host to keep the scale factor in the previewer page, therefore we can make the pointer event respond on the correct position.

ijklam avatar Nov 04 '25 16:11 ijklam

@ijklam The previewer can be further improved like you found out.

The related logic from the AvaloniaRider repo, but that is going to require significant effort, which is not in scope of our fork. You can work on that if you like.

lextm avatar Nov 04 '25 16:11 lextm