Namespaces
The most mysterious part about comparing the previous XAML examples with the equivalent C# examples is how the XML namespace http://schemas.microsoft.com/winfx/2006/xaml/presentation maps to the .NET namespace System.Windows.Controls in the case of WPF and Silverlight, and the WinRT namespace Windows.UI.Xaml.Controls in the case of Windows Store and universal apps. It turns out that the mapping to this and other namespaces is hardcoded inside each framework. (In case you’re wondering, no web page exists at the schemas.microsoft.com URL—it’s just an arbitrary string like any namespace.) Throughout this book, you will see elements commonly used in XAML and their framework-specific representations.
The root object element in a XAML file ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access