Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we Debug Xaml in WPF?

Can we Debug Xaml in WPF? Is there any external tool or VS plugin which can do that?

like image 289
sag Avatar asked Jul 01 '10 06:07

sag


People also ask

Is XAML part of WPF?

Most WPF apps consist of both XAML markup and code-behind. Within a project, the XAML is written as a . xaml file, and a CLR language such as Microsoft Visual Basic or C# is used to write a code-behind file.

Why XAML is used in WPF?

The goal of XAML is to enable visual designers to create user interface elements directly. WPF aims to make it possible to control all visual aspects of the user interface from mark-up.


1 Answers

I've occassionally found these tricks here useful...

http://www.wpftutorial.net/DebugDataBinding.html

...particularly the second one where you use a dummy value converter to break in to the debugger. It's useful for seeing exactly what objects are being bound, etc.

like image 110
IanR Avatar answered Sep 30 '22 04:09

IanR