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

MouseOver Color

8 Answers 104 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Cuthahotha
Top achievements
Rank 1
Cuthahotha asked on 22 Jul 2010, 03:28 AM
I;m getting some kind of funky yellow background over all of the items in my treeview when I mouse over.  I don't mind highlight over the item thats moused over, but all items get odd color. 

I've tried with an overall transparent and white background.  No difference.

Suggestions?

Thanks,
Steve

8 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 22 Jul 2010, 09:15 AM
Hello Cuthahotha,

We don't observe this effect in our setup - please check here:
http://demos.telerik.com/silverlight/#TreeView/FirstLook

Is there anything specific on your page. Can you send us a project or screenshot.

Best wishes,
Valentin.Stoychev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Cuthahotha
Top achievements
Rank 1
answered on 22 Jul 2010, 01:52 PM
I dont see it in your samples either.

Screen shots attached.  The first panel in the screen shot shows treeview with no mouse over, second with mouse over the items panel, and third with the mouse over an item.

I've tried this with transparent and with white backgrounds.

The code is below.


<
Grid x:Name="LayoutRoot" Background="Transparent" >
     <Grid.RowDefinitions >
         <RowDefinition Height="*" />
     </Grid.RowDefinitions>
     <Grid.ColumnDefinitions>
         <ColumnDefinition Width="Auto" />
         <ColumnDefinition Width="*"/>
     </Grid.ColumnDefinitions>
     <telerikNav:RadTreeView x:Name="tvProjectTree"   Background="Transparent"  IsDragDropEnabled="True" AllowDrop="True" IsDropPreviewLineEnabled="True" IsDragPreviewEnabled="True" IsDragTooltipEnabled="True" >
       
     </telerikNav:RadTreeView>
                               
       
 </Grid>
0
Tina Stancheva
Telerik team
answered on 23 Jul 2010, 02:27 PM
Hi Cuthahotha,

From the code snippet you provided I couldn't see whether there are custom styles applied to the RadTreView. However, from the images you sent, it seems that there are custom styles applied to the RadTreeViewItems and perhaps the RadTreeView itself. Can you send us these or elaborate on how you set the Black background and the White Foreground of the RadTreeViewItems. That will help us further investigate the issue.

Thank you in advance.

Best wishes,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Cuthahotha
Top achievements
Rank 1
answered on 23 Jul 2010, 03:24 PM
Hi Tina,

No custom anything.  That's what has me confused.

The background is set as shown to "Transparent".  Shows that in the code.

The "black" is actually dark green, and is the background color of the parent page.

The only xaml on the control other that the name spaces is shown.

The control is programatically loaded into a content control, which is in turn loaded into a page control.  the page control is where the dark green is set.

Thanks,
Steve
0
Tina Stancheva
Telerik team
answered on 27 Jul 2010, 03:47 PM
Hello Cuthahotha,

Can you please check what kind of items you add to the RadTreeView. From the snapshots you sent it seems that you are populating the RadTreeView with TreeViewItems instead of RadTreeViewItems.

If this is the case, then by using RadTreeViewItems, the issue should resolve.

Give it a try and let me know how it goes.

Kind regards,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Cuthahotha
Top achievements
Rank 1
answered on 09 Aug 2010, 02:19 PM
Tina,

Thank you, that fixed the over all highlight issue.

any suggestions on changing the mouse over highlight?  With the dark green background and white lettering the mouse over color is hiding the text.

Thanks!
0
Accepted
Miroslav
Telerik team
answered on 12 Aug 2010, 08:19 AM
Hi Cuthahotha,

You need to edit the style (specifically the ControlTemplate) of the RadTreeViewItems.

I am attaching the current default style. You will find that all brushes are at the beginning of the file.

All the best,
Miroslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Cuthahotha
Top achievements
Rank 1
answered on 04 Dec 2010, 04:20 PM
Thanks.  Took me a while to get back to this area of the code.

Thanks,
Steve
Tags
TreeView
Asked by
Cuthahotha
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Cuthahotha
Top achievements
Rank 1
Tina Stancheva
Telerik team
Miroslav
Telerik team
Share this question
or