.NET Maui和Blend

huangapple go评论69阅读模式
英文:

.NET Maui and Blend

问题

I'm trying to learn XAML and .NET Maui. I'm using Visual Studio 2022 (17.5.4). I've created the application and I'm able to see the default page on my Android emulator.

现在我想要更改默认页面,并且我想使用Microsoft Blend,但是当我打开它时,我只能编辑XAML作为代码,不能使用图形编辑器,就像我在这个教程中看到的那样。我可以看到教程中他们在使用WPF应用程序,但XAML应该是相同的。

有没有办法在MAUI项目中使用Blend,或者我只能通过修改XAML的代码来修改GUI?

英文:

I'm trying to learn XAML and .NET Maui. I'm using Visual Studio 2022 (17.5.4). I've created the application and I'm able to see the default page on my Android emulator.

Now I want to change the default page, and I'd like to use Microsoft Blend, but when I open it, I can only edit the XAML as code, and I cannot use the graphics editor, as I can see in tutorials like this one. I can see in the tutorial that they are using a WPF application, but the XAML should be the same.

Is there a way to use Blend with a MAUI project, or I can modify the GUI only modifying the code of the XAML?

答案1

得分: 1

不能在MAUI项目中使用Blend。MAUI基于winui3,而winui3没有可用的XAML可视化设计器。

但你可以使用Hot Reload来解决这个问题。

英文:

You can not use the Blend with a MAUI project. MAUI is based on the winui3 and there is no XAML visual designer for the winui3 to use.

But you can use the Hot Reload to make it as a solution.

huangapple
  • 本文由 发表于 2023年4月20日 04:43:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/76058659.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定