From the course: Microsoft XAML: 1 Core Concepts
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
The catalog of XAML namespaces
From the course: Microsoft XAML: 1 Core Concepts
The catalog of XAML namespaces
- [Instructor] You'll see multiple XAML namespaces declared in XAML files. Here's what each one provides for my XAML file. I've selected them at the top of this file. This is a WPF Window file, and these are the standard namespaces you get when you create a new file. There's five of them. First one has no prefix. Second one has x prefix, and they have a d prefix, mc, and local. This top one I've talked about in several other movies in this chapter. It's the default namespace, and it's the one that allows me to map these elements to .NET types and these attributes to .NET properties. Next on the list is one called the XAML namespace. Now, these are all XAML namespaces, but this is the one specific to the XAML parser. It contains XAML language items, ones that make sense to the XAML parser and not specifically tied to WPF or Silverlight or other XAML flavors. Here's how you might use it. In this Button element, I'd like to set the background color, background brush, to a Null reference.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.