-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Designer visual studio doesn't work #142
Comments
May be we need own plugins for VS and Rider to run a proper out of process terminal and capture the window render. Just first thought. |
Yeah, I'm pursuing that route right now. I can capture the console output as VT100 codes, as raw char buffer or as a bmp. branch tomlm/preview is where I'm working. I'm trying to get a previewer working as Consolonia app, then I will try binding that to via one of the means to the avalonia preview |
Making progress, I think it's going to work! |
I was poking around this and made some interesting discoveries.
The way the designer renders the preview window is it has an out of process app which binds to the projects AppBuilder to instantiate the environment and then it renders the control inside of that.
The problem is that out of process host app is not a console app, and so all console APIs blow up. And even it were a console app it's looking for a bitmap to send back to the preview page.
BUT I managed to get it working sort of by doing this:
it displays a preview (although completely illegible)!
Issues I had:
I think this approach might work, but I think we need some combination of styling and scaling to make it work.
There are some alternative approaches that might be possible as well, but it would be more complicated
I don't know...but I thought I'd record what I figured out for whenever/whomever tries to tackle this.
The text was updated successfully, but these errors were encountered: