This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello Mindscape Team, we are thinking about buying WPF Elements, but we need some special features:
|
|
|
1. Multiple selection. We do not currently have this because the control is a TreeView which is single-select. Implementing this would probably be a custom development: you could do this yourselves if you purchased the Enterprise licence (which includes source code), or we would be happy to discuss adding the feature for you. 2. Drag and drop. We don't provide built-in support for this, but because we are a TreeView, the usual techniques for adding drag and drop to a WPF TreeView will work. I keep meaning to do a blog post on this but here is the short form summary I have given to a couple of other people (it talks about dragging and dropping between MCTVs but the same techniques work for dragging and dropping within a single MCTV): The basic idea is to handle the MouseDown (or MouseLeftButtonDown) event and call DragDrop.DoDragDrop from your event handler. Then in the target control or controls, set AllowDrop="True" and handle the Drop event. (To drag nodes within a treeview, just do this on the same treeview where you're initiating the drag.) The main subtlety is getting hold of the tree
view item in a databound (ItemsSource) scenario. Here is the code that I
used for this (where e is the MouseButtonEventArgs). MulticolumnTreeViewItem tvi = (MulticolumnTreeViewItem) (mctv1.ContainerFromElement(e.OriginalSource as DependencyObject)); 3. Selection shortcuts. Could you provide us with a bit more detail on what you want here? 4. Sorting. You should be able to do this by sorting the default view of your source data: see ICollectionView.SortDescriptions, or ListCollectionView.CustomSort if you require more flexibility. |
|