When playing with WPF and databindings i was a little frustrated with the lack of debug possibility’s of databindings in XAML. The problem is of course that XAML is no code.
The blog of Beatriz Costa offers some great solutions:
The best is using the Converter solution, add the following class to your codebehind:
public class DebuggingConverter : IValueConverter
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
return value; // Add the breakpoint here!!
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
throw new NotImplementedException(“This method should never be called”);