Tooltip template not showing image

3 posts, 0 answers
  1. Richard
    Richard avatar
    11 posts
    Member since:
    Aug 2010

    Posted 16 Dec 2014 Link to this post

    I've taken a look at your Tooltip demo (, but I'm not sure how to implement my tooltip image.  What I'm trying to do seems simple enough, hover over some control and display a dynamic image.  Currently, I don't see anything at all when I hover over my grid cell.

    Within my DataTemplate I have 2 stack panels.  One will be visible at a time, and one of those has a ToolTipContentTemplate to display an image.  Unfortunately, nothing is visible.   Originally, I had all my ToolTipService code within my TextBlock, but in the attached image, it's currently on the StackPanel.
    My image has a relative path to my Silverlight app, and I know that this works. 

    It's been a LONG time since I've worked with Silverlight, so I'm not sure what I'm missing...  Hope you can help!

    Thank you!
  2. Richard
    Richard avatar
    11 posts
    Member since:
    Aug 2010

    Posted 18 Dec 2014 in reply to Richard Link to this post

    <telerik:RadButton x:Name="ShowImageButton"
     Command = "{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=telerikGrid:RadGridView}, Path=DataContext.ShowImageCommand}"
     Content="Click for Image" >

    I changed the tooltip into a button so I could actively be involved with the event firing.  Using the above code I could have my button within a datatemplate, and still wire it up successfully to hit my viewModel (MVVM).
  3. DevCraft R3 2016 release webinar banner
  4. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1165 posts

    Posted 19 Dec 2014 Link to this post

    Hello Richard,

    I am not completely sure why this can happen but one possible reason is binding failure. Even if you have set the ContentTemplate it will not be applied if you have not set Content. This is why I would like to ask you to check if the binding to the ToolTipContent if properly applied. I attached the project I tested the scenario with and the code works as expected - the tooltip is visualized. 

    Can you change the code so that the issue can be reproduced with the project?

    Pavel R. Pavlov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top