Skip to content

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

@Aleksey1555

Description

@Aleksey1555

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions