问题描述
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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!