This is a migrated thread and some comments may be shown as answers.

Highlighted and disabled control brushes for RadTreeViewItems of databound RadTreeView

1 Answer 57 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 14 Apr 2009, 03:41 PM
Hello

I'm using 2009 Q1 WPF RadControls,
How would I achieve the same functionality for my RadTreeView that the following code would perform for WPF TreeViews?

        <Style TargetType="{x:Type TreeViewItem}">
            <Style.Resources>
                <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#ffa7cdf0"/>
                <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="#ffa7cdf0"/>
            </Style.Resources>
        </Style>

In other words, how would I change the style (colour in this case) of the Highlight brush of TreeViewItems from golden to something else? Also, please show me how to change the inactive (i.e. highlight colour when focus is lost) colour.

Many thanks





1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 15 Apr 2009, 02:14 PM
Hello Julian Borthwick,

    Please find attached a project  and a sample .docx file that demonstrates how to edit styles in Blend.
    I hope that this will help you.
    
All the best,
Dimitrina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TreeView
Asked by
Julian
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or