Skip to content
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

What is a proper way to call UI control method from ViewModel #295

Open
Aleksey1555 opened this issue Dec 8, 2024 · 0 comments
Open

What is a proper way to call UI control method from ViewModel #295

Aleksey1555 opened this issue Dec 8, 2024 · 0 comments

Comments

@Aleksey1555
Copy link

Aleksey1555 commented Dec 8, 2024

Hello.
I want to create Visual Studio Extension for Debugger Visualizer, and i want to use WebView2 control for render HTML page.And i need to render HTML page from string.There is method NavigateToString which can do this, but the because of in VS Extension VSSDK is using MVVM pattern - i have no access by name to WebView2 control. So, how i can call this method?

My configuration:
Window 10 x64
Visual Studio 2022 Community
Type of project - VisualStudio.Extensibility Extension with VSSDK Compatilibity
.Net Framework 4.8
Microsoft.VisualStudio.Extensibility.Build - version 17.12.40390
Microsoft.VisualStudio.Extensibility.SDK - version 17.12.40390
Microsoft.VisualStudio.SDK - version 17.12.40392
Microsoft.Xml.Behaviors.Wpf - version 1.1.135

Also: i am try to create modern type of Visualizers by using class DebuggerVisualizerProvider.
Please help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant