Using Resources and MVVM Patterns

In this chapter, we will cover the following recipes:

  • Using binary resources inside a WPF application
  • Using binary resources from another assembly
  • Accessing binary resources in code
  • Using static logical resources in WPF
  • Using dynamic logical resources in WPF
  • Managing logical resources
  • Using user selected colors and fonts
  • Building an application using the MVVM pattern
  • Using routed commands in a WPF application

Introduction

While binary resources play a vital role in any application, WPF also provides a different kind of resource, called a logical resource. These logical resources are objects that can be shared throughout the application and can be accessed across multiple assemblies. These can be of two ...

Get Windows Presentation Foundation Development Cookbook 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.