From the course: Microsoft XAML: 3 Type Converters and Resources

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Use some common markup extensions

Use some common markup extensions

From the course: Microsoft XAML: 3 Type Converters and Resources

Start my 1-month free trial

Use some common markup extensions

- [Instructor] It's time to look at how to use some of the mark up extensions that are part of the wpf.zaml world. Some of the more popular ones you'll see are the ones I find most often used are static resource and dynamic resource. These are extensions for programatically getting data that's defined in our resources section inside a zaml file or elsewhere in the application. Another two popular ones are binding and template binding. These are used to programatically get information from a data source and data bind it to the property. These other two are less popular but I'm going to show them in this demonstration. There's one called static and one called type. To be clear static and static resource, they have the word static in them but they serve different purposes. I'll start by looking at the static resource. Now I've got a linear gradient brush to find up here in my resources section and I want to use that on this ellipse. So I'll go down to my fill property, I'll type in the…

Contents