使用 c# 和 xaml 编程 wpf xaml 与 windows rt [英] Programming wpf xaml vs windows rt with c# and xaml

查看:22
本文介绍了使用 c# 和 xaml 编程 wpf xaml 与 windows rt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的.我知道 wpf 并且正在通过 c# 和 xaml 学习编程 Windows 运行时.两者都使用具有相同命名空间的 xaml.Win rt 是新的,并且在根元素中声明了相同的命名空间.

有何异同.

解决方案

以下是 WPF 和 WinRT 之间的一些差异:

  1. XAML 代码中的不同 XML 命名空间声明(而不是使用 clr-namespace:/assembly= 限定符集用于代码到 XAML 命名空间引用,您使用 using: 限定符.XAML 命名空间不再引用特定程序集)

  2. WPF 中缺少表达式 SDK

  3. WPF 中缺少属性/数据触发器

  4. 减少绑定模式枚举

  5. WPF 中缺少多/优先级绑定

  6. WPF 中缺少路由命令

  7. WPF 中缺少 InputBindings

  8. DependencyProperty 值计算无需强制和验证

还有很多不同.您可以查看此链接以进一步了解.>

Ok. I know wpf and am learning programming windows runtime via c# and xaml. Both use xaml that have the same namespace. Win rt is new and has the same namespace declared at the root element.

What are the similarities and differences.

解决方案

Here are some of the differences between WPF and WinRT:

  1. Different XML namespace declaration in XAML code (Instead of using a clr-namespace:/assembly= qualifier set for code-to-XAML namespace references, you use the using: qualifier. XAML namespaces no longer reference specific assemblies)

  2. Missing Expression SDK in WPF

  3. Missing Property-/DataTriggers in WPF

  4. Reduced BindingMode enum

  5. Missing Multi/Priority Binding in WPF

  6. Missing RoutedCommands in WPF

  7. Missing InputBindings in WPF

  8. DependencyProperty value calculation goes without coercion and validation

There are lot more differences. You can check this link to know further.

这篇关于使用 c# 和 xaml 编程 wpf xaml 与 windows rt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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