tryingtogethelp
New member
- Joined
- Aug 6, 2025
- Messages
- 1
- Programming Experience
- 1-3
I'm developing a Visual Studio 2022 ToolWindow extension using .NET 8. My extension needs to display multiple views within the main view and switch between them when specific buttons are clicked.
In a standard WPF application, I would handle this using UserControls and simply switch them in a container like a ContentControl. However, with the new VisualStudio.Extensibility SDK, I'm restricted to using AsyncCommands, and I’m unsure how to define the appropriate properties in XAML or load/switch views properly in this environment.
I've referred to the official documentation:
Tool Windows overview - Visual Studio (Windows)
Remote UI - Visual Studio (Windows)
...but I haven’t found clear guidance on how to handle multiple views in a single ToolWindow context.
What is the recommended way to structure and switch between multiple views in the main view of a single ToolWindow in a Visual Studio 2022 extension using .NET 8? Are there specific APIs or patterns I should be using within the Visual Studio extensibility framework?
In a standard WPF application, I would handle this using UserControls and simply switch them in a container like a ContentControl. However, with the new VisualStudio.Extensibility SDK, I'm restricted to using AsyncCommands, and I’m unsure how to define the appropriate properties in XAML or load/switch views properly in this environment.
I've referred to the official documentation:
Tool Windows overview - Visual Studio (Windows)
Remote UI - Visual Studio (Windows)
...but I haven’t found clear guidance on how to handle multiple views in a single ToolWindow context.
What is the recommended way to structure and switch between multiple views in the main view of a single ToolWindow in a Visual Studio 2022 extension using .NET 8? Are there specific APIs or patterns I should be using within the Visual Studio extensibility framework?