Drag&Drop readonlycollection

1 posts, 0 answers
  1. Radiation
    Radiation avatar
    13 posts
    Member since:
    Jul 2012

    Posted 31 Aug 2012 Link to this post


    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? :)


    ok, PreviewDragEnded seems to be the solution :)

Back to Top