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 followed the approach suggested in thread http://www.mindscape.co.nz/forums/Thread.aspx?ThreadID=1896 to highlight a grid row while selection. I have set my Style definition as following <Style x:Key='MulticolumnTreeViewItem' TargetType='tvLib:MulticolumnTreeViewItem'> <Setter Property='IsSelected' Value='{Binding IsSelected}'/> <Setter Property='FontWeight' Value='Normal' /> <Setter Property='Foreground' Value='Black'/> <Style.Triggers> <Trigger Property='IsSelected' Value='True'> <Setter Property='Background' Value='{DynamicResource ListItemSelectedBrush}' /> </Trigger> </Style.Triggers> </Style> I am setting a custom brush to Background proeprty of MulticolumnTreeViewItem. At runtime, the control does not set the first column background. It still remain as Windows System highlight color. Can you please suggest a way to highlight the entire row applying custom brush across all columns? Also I am using themeing as part of WPFToolKit. It seems like MulticolumnTreeViewItem does not recognize the theme styles. Can we do something to apply theme to MulticolumnTreeViewItem also? Sorry for such a long post. Any pointers in this regard would be of great help Thanks, Siva |
|
|
Hello Siva, Are you using the RTM version of WPF Elements, or the nightly build? If you are using RTM, could you try upgrading to the nightly build and see if that fixes the problem with the first column? I think we fixed something related to this but I am not sure if the fix addressed your scenario. We'll investigate the Toolkit theming issue -- thanks for drawing this to our attention. |
|
|
Ivan,
My team is using RTM version only. I can try a nightly build and let you know. Please let me know how I can get latest nightly build in reply. Thanks, Siva |
|
|
Hi Siva, Customers can grab the latest nightly builds of their commercial builds from here: http://www.mindscape.co.nz/store/myaccount.aspx Click "Get Files" and you should see nightly builds listed. The trail version users can grab nightly builds here: http://www.mindscape.co.nz/downloads.aspx I hope that helps, John-Daniel Trask |
|
|
The latest nightly build, does not fix this issue.
This is very important to get fixed.
|
|
|
We have reproduced this and will investigate a fix but in the meantime you can work around the problem as follows: 1. Add the following entries to your Resources section: <ms:MulticolumnTreeViewIndentConverter x:Key="LevelToIndentConverter" Indent="14" /> (The highlighted entry should be the same as the background brush you are using for the rest of the row.) 2. Use this as the ExpandingDecorator template for the tree view: <ms:MulticolumnTreeView ExpandingDecorator="{StaticResource ecd}" /> This provides the custom selection colour across the entire row in our test application. If it doesn't work for you then please could you create a small repro project for us so we can investigate? (You can attach a zip file via the Options tab.) Thanks! |
|
|
Ivan,
This temporary fix solved it. But we would like to get it fixed in the tool set itself. Also I talked about the Theming support which also is not working properly with the current version. Hope you are working on that too. Please update us if you guys put any versions which addresses these two things. Thanks, Siva |
|