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. I want to ask a question about MulticolumnTreeView. My code is like this:
I want to save the TreeViewItem information of IfIsExpanded,so I set the Property of IsExpanded and it works in function.But it change the style of MulticolumnTreeViewItem. After adding these code,I can't select a row of MulticolumnTreeView and some styles of ms:OfficeBlue disappear. how to slove it? |
|
|
Hello The OfficeBlue styles are disappearing because the style you've added to the resource dictionary is overriding the OfficeBlue style. This can be resolved by setting the BasedOn property of the style like this:
This makes your style extend the existing style, which in your case will be the OfficeBlue style. Note that for some reason this does not work when you set OfficeBlue in the merged dictionary of the MulticolumnTreeView like what you're doing here. Instead you will need to set OfficeBlue in a merged dictionary of either the Window of the application, or a panel containing the MulticolumnTreeView. Let me know if you run into any trouble. -Jason |
|
|
Thx very much,Jason. |
|