microsoft / VSExtensibility

A repo for upcoming changes to extensibility in Visual Studio, the new extensibility model, and language server protocol.
MIT License
351 stars 42 forks source link

Remote UI Xaml doesn't have a preview #376

Open na1307 opened 1 month ago

na1307 commented 1 month ago

I tried to follow what is shown here: https://github.com/microsoft/VSExtensibility/tree/main/New_Extensibility_Model/Samples/DialogSample. But I get a compilation error because DataTemplate and RemoteUserControl are different classes. Additionally, the DataTemplate cannot be previewed in the designer.

na1307 commented 1 month ago

I just noticed that there is no x:Class definition in the xaml file. But there's still the problem that DataTemplate doesn't allow previewing.

matteo-prosperi commented 1 month ago

You may want to have a look at this documentation for more information and a step-by-step guide on both the concepts and how to create a tool window and do data binding.

The lack of XAML preview is a known limitation. We don't currently have an immediate plan to address this. My usual development pattern for this type of VS extensions, is to prototype most of the XAML and databinding in a standalone WPF application before moving it over to an extension project.