From the course: Microsoft XAML: 3 Type Converters and Resources
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Create Resources with the Properties window
From the course: Microsoft XAML: 3 Type Converters and Resources
Create Resources with the Properties window
- [Instructor] I'm comfortable writing my XAML by hand and editing it in the xml editor. And I'm comfortable creating my resources that way, too. But there are times when I'd rather use a visual designer. That's what I'll show you in this video. This example I've got two orange ellipses. You can see the fill value is set here. On Visual Studio you can select the item, and then go over here to the Properties window. By default, it sorts in what's called the Category view. You can also switch it over to sort by Name. Go back to Category. And you can see that it's got an orange brush here. Now, if you know much about the Property window in wpf, you'll see these little property pegs over here. A white value when you hover over that says, that the stroke property is being set by what's called the default value. If I hover over this one, you can see it's being set with local, meaning it's being set here in my XAML. So that black indicates it's coming from a local value. I can click on this,…
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.
Contents
-
-
-
-
Types of resources6m 31s
-
XAML resources and ResourceDictionaries4m 4s
-
The Resources property2m 44s
-
Use resource with the StaticResource markup extensions3m 46s
-
Styles in resources1m 23s
-
Colors in resources1m 29s
-
Data and templates in resources3m 3s
-
Explore the resource hierarchy2m 51s
-
Create Resources with the Properties window5m 54s
-
A quick look at merged resources5m 24s
-
Use the Pack URI to locate resource files2m 39s
-
Load a resource file for dynamic application UI2m 6s
-
-