Probably Visual Studio has an issue, which can be reported using the “Send Feedback” command from HELP menu.
Try the updated latest Visual Studio (today it is Visual Studio 2022 17.7.4). Probably the Preview version does not have to be uninstalled.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In Visual Studio 2023 Preview Version
System.NullReferenceException
Object reference not set to an instance of an object.
at Microsoft.VisualStudio.DesignTools.SurfaceDesigner.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.XamlDesignerHost.HostDesignerView.TryEnsureView()
Probably Visual Studio has an issue, which can be reported using the “Send Feedback” command from HELP menu.
Try the updated latest Visual Studio (today it is Visual Studio 2022 17.7.4). Probably the Preview version does not have to be uninstalled.