Debugging and Threading

In this chapter, we will cover the following recipes:

  • Enabling the UI debugging tool for XAML
  • Navigating through XAML elements using Live Visual Tree
  • Inspecting XAML properties using Live Property Explorer
  • Updating the UI from a non-UI thread
  • Adding cancelation support to long running threads
  • Using the background worker component
  • Using a timer to periodically update the UI

Introduction

When it comes to application development, debugging plays a vital role. It is a process that helps you to quickly look at the current state of your program by walking through the code line by line. While writing the code, developers start debugging their applications. Sometimes, developers start debugging even before writing the first ...

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.