我正在用 WPF C# 做一个项目。我想知道“using System.Windows”在 WPF 中是否相当于 Windows 应用商店应用程序的“using Windows.Foundation;”由于我在使用 Point、Rect 和 Size 关键字时遇到问题,我想知道如何让它在 WPF 中工作。
最佳答案
不,不完全是。某些 WinRT 类型和 .NET 类型之间存在映射,您可以在这里找到它:http://msdn.microsoft.com/en-us/library/windows/apps/hh995050.aspx
.NET 的 System
命名空间中找到的许多类都可以在 WinRT 的 Windows.Foundation
命名空间中找到。 System.Windows
最接近的匹配是 Windows.UI.Xaml
,但它没有完全相同的类型。
关于c# - 在WPF中, "using System.Windows;"与 "using Windows.Foundation;"相同问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20653531/