MouseOver Color

9 posts, 1 answers
  1. Cuthahotha
    Cuthahotha avatar
    81 posts
    Member since:
    Sep 2008

    Posted 21 Jul 2010 Link to this post

    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
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 22 Jul 2010 Link to this post

    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
  3. DevCraft banner
  4. Cuthahotha
    Cuthahotha avatar
    81 posts
    Member since:
    Sep 2008

    Posted 22 Jul 2010 Link to this post

    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>
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 23 Jul 2010 Link to this post

    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
  6. Cuthahotha
    Cuthahotha avatar
    81 posts
    Member since:
    Sep 2008

    Posted 23 Jul 2010 Link to this post

    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
  7. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 27 Jul 2010 Link to this post

    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
  8. Cuthahotha
    Cuthahotha avatar
    81 posts
    Member since:
    Sep 2008

    Posted 09 Aug 2010 Link to this post

    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!
  9. Answer
    Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 12 Aug 2010 Link to this post

    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
  10. Cuthahotha
    Cuthahotha avatar
    81 posts
    Member since:
    Sep 2008

    Posted 04 Dec 2010 Link to this post

    Thanks.  Took me a while to get back to this area of the code.

    Thanks,
    Steve
Back to Top
DevCraft banner