Avatar of deeMvee
Flag for Norway

asked on 

programmatically select and expand treeviewItem when bound to a collection

I have a treeview which is bound to an observable collection.
After I insert an element in the collection it appears in my treeview.
Since the collection is of base type INotifyPropertyChanged the treeview methods are no longer available.
I want to be able to set "IsSelected" from code behind.
What is the best way to do this?
Microsoft DevelopmentC#

Avatar of undefined
Last Comment

8/22/2022 - Mon