wpfdata-bindingrelativesource

WPF: How do I know if Binding RelativeSource found an ancestor


I'm using the binding RelativeSource with the FindAncestor Mode but the binding is not working. How do I debug and see if It is able to find the ancestor?


Solution

  • use Snoop

    EDIT: you can of course use the usual debugging mechanisms, but I like Snoop the best. You can navigate to your control and if your binding failed it tells you so