Archive for November, 2009

How to debug WPF bindings

The databinding expert in the field, Bea Stollnitz, has a great post about different options to debug your wpf binding. In summary, the options are: The output window Trace sources Trace level (new in 3.5) Converter you’ve got to check them out, it will save you a lot of time!

Pin a debugger watch

The fact that Visual Studio has been designed in WPF exposes a ton of possibilities. Here’s a cool feature : pinning a debugger watch   Note: these "pinned-windows” even remain after restarting your application!

Arithmetic operations in xaml

Many times, you want to bind a numeric value to another property AND perform some calculation over it. For instance, you would like to bind the width of your control to be half the size of its parent control. Take a look at this converter It enables a xaml syntax like this: {Binding ElementName=control, Path=ActualWidth, [...]