Mono 是否支持 XAML?

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

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
quot;Overflowquot; compiler error with -9223372036854775808L(编译器错误-9223372036854775808L(Q;溢出Q))
Visual Studio 2010 ReportViewer Assembly References(Visual Studio 2010 ReportViewer程序集引用)
Weird behaviour when I open a reportviewer in WPF(在WPF中打开报表查看器时出现奇怪的行为)