Summary

When you create a new XAML-based project in Visual Studio, even a “blank” one, the plumbing that connects your XAML content with your procedural code is already in place. This can make the interaction between your XAML and code seem a bit magical. This chapter explained what is actually going on when you compile your project, and showed ways you can exploit XAML content for your own custom runtime scenarios.

Visual Studio handles additional infrastructure that loads your XAML content in the context of your app. The details of this infrastructure vary based on the type of project you are working with. In a WPF app, this typically means creating and showing a Window that directly houses your XAML content. In other types of apps, your XAML ...

Get XAML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.