Windows 8 中的 WinRT 和 WPF [英] WinRT and WPF in Windows 8

查看:22
本文介绍了Windows 8 中的 WinRT 和 WPF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,WinRT 是不使用底层 Win32 API 编写的不同版本的 WPF.

As I understand, WinRT is a different version of WPF written without using the underlying Win32 APIs.

WinRT 和 WPF 的关系是什么?WPF 会在 Windows 7 的 Metro 下运行还是会启动经典桌面?

What's the relation of WinRT and WPF? Will WPF work under Metro in Windows 7 or will it launch the classic desktop?

从 Keynote 讲,这不是很清楚.如果有人安装了 Windows 8 可以确认它的行为.

That's not so clear from the Keynote. If someone has Windows 8 installed can confirm it's behaviour.

谢谢

推荐答案

WinRT 是 Winapi 的替代.api 是本机的,与作为 CLR 之上的层运行的 WPF 非常不同.它当然类似于 WPF,这是导致混淆的部分原因.它采用了托管代码的元数据格式,取代了旧的类型库.并使用 XAML 进行 UI 设计,很像 WPF、Silverlight 和 Windows Phone.您仍然可以为 Windows 8 编写 WPF 应用程序,但您的应用程序不能通过商店发布,不能与 Metro 桌面集成,也不能在基于 ARM 内核的平板电脑上运行.这是否是一个真正的问题在很大程度上取决于 Metro 在市场上的表现.

WinRT is a replacement for the Winapi. The api is native, very unlike WPF that runs as a layer on top of the CLR. It certainly resembles WPF, part of what causes confusion. It adopted the metadata format of managed code, replacing type libraries of old. And uses XAML for UI designs, much like WPF, Silverlight and Windows Phone. You can still write WPF apps for Windows 8 but your app can't be published through the store, won't integrate with the Metro desktop nor will it run on tablets that are based on the ARM core. Whether that's a real problem depends a great deal on how well Metro will do in the market place.

这篇关于Windows 8 中的 WinRT 和 WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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