Does Mono support XAML?(Mono 是否支持 XAML?)
问题描述
Mono 是否支持 XAML?
Does Mono support XAML?
具体来说,我正在考虑改用 XAML 来完成我所做的新 GUI 工作,但我也喜欢让我的个人项目可以在 Mono 中编译.我现在应该坚持使用普通的旧 System.Windows.Forms 吗?
Specifically I'm thinking of switching to using XAML for new GUI work that I do but also I like to keep my personal projects compilable in Mono. Should I just stick with plain old System.Windows.Forms for now?
推荐答案
Mono 支持 XAML for Moonlight(Silverlight 的端口),但不支持,并且不打算支持 WPF.
Mono supports XAML for Moonlight (the port of Silverlight), but does not, and does not plan to support WPF.
我觉得将逻辑与 UI 分开是个好主意 - 如果这样做,您始终可以确保逻辑在 Mono 中正常工作,并为您的 UI 使用 WPF.如果您决定需要移植并在 Mono 上运行,只需移植/实现一个与您的应用程序正确配合使用的 UI.
I feel that it's a good idea to keep your logic separate from your UI anyways - if you do that, you can always make sure the logic works correctly in Mono, and use WPF for your UI. If you ever decide you need to port and run on Mono, it would just be a matter of porting/implementing a UI that works with your application correctly.
这篇关于Mono 是否支持 XAML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Mono 是否支持 XAML?


- C# 中多线程网络服务器的模式 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 输入按键事件处理程序 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01