VS 2022 Preview not showing the XAML designer

Viewed 7128

I've just installed VS 2022 preview to use Maui but there seems no way to see a designer view of the XAML, I want to drag and drop controls onto the page but all I get is an ancient looking XAML text view.

2 Answers

Visual Studio has removed the XAML designer. For now, there is no official plan to readd it.

But Visual Studio support Hot Reload to modify your apps managed source code while the application is running, without the need to manually pause or hit a breakpoint. You could preview the view at runtime when you change the UI. For more details, please check the blog. https://devblogs.microsoft.com/dotnet/introducing-net-hot-reload/

Like Cfun said, you could use live visual tree as well. It shows a tree view of the UI elements of your running Xamarin.Forms application. https://docs.microsoft.com/en-us/xamarin/xamarin-forms/xaml/live-visual-tree

For a WPF dotnet6 project, the XAML designer can be enabled here:

enter image description here

Don't know why it's disabled by default.

Related