Sometimes I feel that DataBinding and Triggers defined in xaml is just trying to fight me.
I have this really simple case where I have a UserControl with a TreeView and a TextBlock. I want to show the TextBlock only when the TreeView is empty.
In code this would be one or two lines of code, but I’m determined to hook it up in xaml, but so far, no matter what I try it doesn’t work.
I even tried to expose the Items as a property on the control class itself – but I could bind to that either.
How would you do this in xaml ?
View Complete Post