Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
XamDataTree: Disallow dropping item into collection where item already exists
posted

I've got a XamDataTree that we allow drag/drop within, both copying and moving. If I copy an item into a certain node, the tree will allow me to continue adding that same item within that same node. So I can end up with many of the same items within that node, where I'd like to constrain it to not allow duplicates. Is there a way to do this? A wrinkle to this is that my tree is fairly complex and some of the types derive from a common base which forces me to work around some of the default behavior of the tree.