Hello, I have a TreeView and a couple of other controls like TextBoxs and ComboBoxs. The textboxes are bound to the selected item in the treeview like this:
Text="{Binding SelectedItem.Name, ElementName=groupTreeView}"
This works fine if all the elements in my treeview have a Name Property.
I was wondering if there was a way to do some kinda of conditional bind that would say
if SelectedItem is MyTreeType
then bind
else
disable the element
Is it possible to do something like this ? Right now I'm just getting binding errors thrown and that seems a little dirty. My tree view is databound and has a couple different type of classes in it so that's why I'm looking for some kind of conditional binding.
Thanks, Raul