Native Client

TH21 WPF Styles, Resources and Templates, Oh My!

08/16/2018

3:30pm - 4:45pm

Level: Introductory

Paul Sheriff

Author / Instructor

During this session, you'll learn how to effectively use styles in your WPF applications. You will learn the basics of styles, how to override styles, base styles on other styles, create resource dictionaries and override control templates. You can load resource dictionaries dynamically, placed them into DLLs, or right in your main application. You will learn the best practices around how to manage your dictionaries. Being able to change the look and feel of the default controls can go a long way in giving your users a great UI. You will learn to modify controls by changing their default template. At the end of this session you will walk away with a set of reusable styles and resources that you can use immediately in your WPF applications.

You will learn:

  • Best uses of styles, resources and templates
  • How to use style inheritance
  • Wrap styles into resource dictionaries for reusability