From the course: Microsoft XAML: 1 Core Concepts

Unlock the full course today

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

Use XAML in WPF

Use XAML in WPF

From the course: Microsoft XAML: 1 Core Concepts

Start my 1-month free trial

Use XAML in WPF

- [Instructor] In this chapter, I thought I'd look at some of the UI frameworks that Microsoft produces that use XAML. I thought I would start by looking at one of my favorites for building desktop applications which is called Windows Presentation Foundation. I've been using WPF applications for most of the demos in this course. When you create a brand new WPF project, it'll add several files that have XAML in them. One of them is this one here: App.xaml. This file is an application-level XAML file. Things that go in here apply to the entire application. On line five, there's a property called StartupUri. This is how you designate the startup window for this application. Currently it's gonna start with this MainWindow.xaml. The other thing that you see in here is something called the Application.Resources, and this is where you specify things like application-wide brushes, or styles for user controls. You can see in this case I've got a RadialGradientBrush, and a LinearGradientBrush…

Contents