Reputation: 4676
Referring to this question and this question, the solutions in the accepted answers are working, but in the project i want to apply, no binding or trigger is working. There is no error, the triggers etc simply do not respond.
The code is huge, with a complicated layout using many grids and panels and a ribbon. Source of binding and triggers and target are in different panels (source in ribbon, target in grid below). I know the code is correct, my question is:
What is the checklist? What are the things i need to look at to ensure that triggers and bindings are working.
If source and target are in different panels, is there something different in their implementation (like going from ribbon to the parent (main grid created by default)) and then finding the target in the children (grid)?
I can print on console if i write code-behind, but is there a way to debug triggers and bindings?
Upvotes: 0
Views: 98
Reputation: 3285
I've also had success debugging triggers with this technique:
http://www.wpfmentor.com/2009/01/how-to-debug-triggers-using-trigger.html
Upvotes: 1
Reputation: 81313
You can always look i your output window for binding failures. This might prove helpful to you to test your bindings and trigger failures -
http://bea.stollnitz.com/blog/index.php?s=presentationtrace
Upvotes: 1