This is a migrated thread and some comments may be shown as answers.

Drag&Drop readonlycollection

0 Answers 52 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Radiation
Top achievements
Rank 1
Radiation asked on 31 Aug 2012, 11:07 AM
Hi,







I have viewmodels for treenodes that expose only ReadOnlyObservableCollection for Children nodes.



The viewmodels have InsertChild and RemoveChild methods with some custom logic.







I would like to call these methods, but the DragEnded event is never fired because of unhandled NotSupportedException: Collection is read-only.







I need to add custom logic to every change in collection, not only changes made by RadTreeview.



How to do this? :)



[EDIT]

ok, PreviewDragEnded seems to be the solution :)



No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Radiation
Top achievements
Rank 1
Share this question
or