[WIP] Previewer improvement
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.
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 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.