XAML中UI设计的优势 [英] Advantages of UI design in XAML

查看:67
本文介绍了XAML中UI设计的优势的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在WPF中,我可以使用诸如designer.cs之类的.NET 2.0样式来制作UI,我的问题是,使用XAML进行UI设计而不是使用代码有什么好处。

In WPF i can make my UI using .NET 2.0 style like designer.cs, my question is what are the advantages of using XAML for UI design instead of code.

推荐答案

主要优点是,如果您将标记和代码完全分开(例如,通过应用 MVVM模式),您可以专注于应用程序的行为(即代码),并让专业的图形设计师担心应用外观和风格

The main advantage is that if you keep a clean separation of markup and code (e.g. by applying the MVVM pattern), you can concentrate on the behavior of the application (i.e. the code) and let professional graphic designers worry about applying the look and feel of the application.

这两个任务甚至可以由两个不同的人使用不同的工具(例如Visual Studio vs. Expression)并行进行。

These two tasks can even be worked on in parallel by two different people using different tools (e.g. Visual Studio vs. Expression).

这篇关于XAML中UI设计的优势的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆