Hi,
I'm developing an treeview. I'm using an ItemTemplateSelector object to apply different styles depending on items' properties, mainly the IsNodeValid property. Same object can be inserted in many places in a single tree.
And what i want to achive, is to force the tree view to rebind templates to all of the items after change of the IsNodeValid property of any item (it will be also ok to rebind the style only for the items, that reference updated object).
Is there any possibility to this? I've tried rebinding the ItemTemplateSelector property (setting it to null, and then once againt to the object taken from resources) - but no success. Also calling the ApplyTemplate method on the tree doesn't success.
I'm developing an treeview. I'm using an ItemTemplateSelector object to apply different styles depending on items' properties, mainly the IsNodeValid property. Same object can be inserted in many places in a single tree.
And what i want to achive, is to force the tree view to rebind templates to all of the items after change of the IsNodeValid property of any item (it will be also ok to rebind the style only for the items, that reference updated object).
Is there any possibility to this? I've tried rebinding the ItemTemplateSelector property (setting it to null, and then once againt to the object taken from resources) - but no success. Also calling the ApplyTemplate method on the tree doesn't success.