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
|
Hi.Now I have three questions like this:
|
|
|
Hello and thanks for the feedback. We will get back to you very shortly. Jason Fauchelle |
|
|
Hello 1) The MulticolumnTreeView extends the WPF TreeView class which means the SelectedItem property is readonly. One way you could get around this is to traverse the tree and use the ItemContainerGenerator to look for the MultiColumnTreeViewItem for the selected item. If found, you then set its IsSelected property to false which is effectively the same as setting the SelectedItem property to null. Here is some code that can find the MulticolumnTreeViewItem (which extends TreeViewItem) for a given data object:
This is a little bit brute-force for items that are not in the root level, though you could probably improve this by traversing your own model structure first to select the correct child items to traverse. You would use the above methods like this:
Where mctv is the MultiColumnTreeView. 2) In the next nightly build The MarkedStripeGrid class will have an Orientation property. By default, this will be Horizontal. You can set this to Vertical to make the stripes change to different colors along the X axis. This will be available for download at around 1200 GMT. 3) For this there are 2 options. Firstly, you could try see if you can make smaller changes at one time to the items source. After 2500 milliseconds, if only a few items were added or deleted, then only change these in the items source rather than refreshing the whole collection. If this is not possible for your data, then I would recommend using the DataGrid instead of the MulticolumnTreeView. We have recently added hierarchical data support for the data grid which can be used in the same way as the MultiColumnTreeView. (Set the ItemTemplate of the DataGrid to be a HierarchicalDataTemplate). The DataGrid uses UI virtualization making it much faster than the MulticolumnTreeView. Also, If you do decide to use DataGrid, then issue 1 will no longer be a problem because you can set the SelectedItem property of the DataGrid to null. Let us know if you have further questions about these. Jason Fauchelle |
|