.NET for Windows Store应用程序参考:哪里? [英] .NET for Windows Store apps reference: Where?
问题描述
我找到了下一页参考:
。用于Windows应用商店应用API的NET [ ^ ]
我想做图形并找到:
Windows命名空间 [ ^ ]
有些事情就像出错了 - 有这么几个类型!?这就是全部吗?
简单的形状在哪里画?
然后我去Windows.UI.Xaml.Shapes [ ^ ]并选择 Ellipse [ ^ ]
我觉得.Net不支持它,但等等 - 我明白了:
引用:C#
公共密封类Ellipse:Shape
我已经在网上的某个地方读过它.Net支持它还显示:
Quote:Namesp ace
Windows.UI.Xaml.Shapes
Windows :: UI :: Xaml :: Shapes [C ++]
一个(没有C ++)是.Net?
最后我打开.NET Framework和Windows运行时命名空间 [ ^ ]它显示了更多的命名空间,但不是所有命名空间都应该支持或不支持它们的子类型?
我还打开了 Windows运行时路线图使用C#或Visual Basic的应用程序 [ ^ ]然后转到快速入门:绘制形状(XAML) [ ^ ]并显示如何绘制形状我在参考资料中找不到!
我只需要.Net Store应用程序的参考资料。
我做错了什么?
您使用.Net Framework的子集名为.Net for Windows Store应用程序为Windows运行时带来C#功能。
Windows运行时(WinRT)是不受管理的,但C#是如何管理的?
您使用.Net for Windows Store应用程序类型以及WinRT类型并在执行期间.Net将与非托管WinRT类型互操作。
适用于Windows应用商店应用API的.NET [ ^ ]显示.net子集支持的类型,与非托管Win一起使用转换类型。
因此它不仅仅是您拥有的C#类型)
您可以通过这种方式使用C#的任何无人值守的WinRT类型
I found the next page of reference:
.NET for Windows Store apps APIs[^]
I wanna do graphics and find:
Windows namespaces[^]
And something is like going wrong - there are so few types!? And that is all?
Where are simple shapes to draw?
But then i go to Windows.UI.Xaml.Shapes [^] and choose Ellipse[^]
I feel like it is not supported in .Net, but wait - i see:
Quote:C#
public sealed class Ellipse : Shape
And i have read somewhere on web it is supported by .Net and it also shows:
Quote:Namespace
Windows.UI.Xaml.Shapes
Windows::UI::Xaml::Shapes [C++]
The one (no C++) is .Net?
At the end i open .NET Framework and Windows Runtime namespaces[^] and it shows much more namespaces, but not all of them and their sub types should be supported or no?
I also open Roadmap for Windows Runtime apps using C# or Visual Basic[^] and then go to Quickstart: Drawing shapes (XAML)[^] and it shows how to draw shapes that i can't find in the reference!
I just need a reference for .Net Store apps.
What do i do wrong?
You use the subset of .Net Framework called .Net for Windows Store apps to bring C# functionality to Windows Runtime.
Windows Runtime (WinRT) is unmanaged, but C# is managed, how?
You use .Net for Windows Store apps types along with WinRT types and during execution .Net will interop with unmanaged WinRT types.
.NET for Windows Store apps APIs[^] shows types supported by .Net subset that you use alongside with unmanaged WinRT types.
So it is not only types you have by C#)
You can use any unamanged WinRT type by C# in this way.
这篇关于.NET for Windows Store应用程序参考:哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!