Why are WPF types inside the System.Windows namespace?
Is it because this technology is tied to Windows? Reason I ask is I read and have been told here that it's not dependent on Windows, so can be ported to other platforms.
In that case shouldn't it be in a non-Windows namespace?
My colleague told me it's because Microsoft didn开发者_如何转开发't want WPF to be ported to other platforms.
The namespace doesn't really matter. Mono has a pretty good implementation of System.Windows.Forms that runs on Windows, Linux, and OS X.
WPF means Windows Presentation Foundation.
And it does not directly indicate whether it is possible (or allowed) to port it to other platforms. WinForms is present in Mono, WPF not (yet).
I heard the "Windows" is not supposed to mean "Microsoft Windows (TM)" in this context, but simply a plural form of the word "window".
精彩评论