Using custom tooltip in linear scale

9 posts, 1 answers
  1. Claudio Mesyngier
    Claudio Mesyngier avatar
    5 posts
    Member since:
    Dec 2009

    Posted 03 Mar 2010 Link to this post

    I am creating a control that uses the linear scale along other framework elements. When I create a tooltip at the control level (on the panel containing all the elements) I get the tooltip to appear on the other elements but not on the linear scale. I can get the formatted tooltips for ticks and markers. Even when I don't use the formatted tooltip I cannot get the control's tooltip so I wonder if there is any interference with between the container's tooltip and the scale's tootlip? The following is an example:

    <UserControl x:Class="RadControlsSilverlightApplication1.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:telerikControl="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Gauge"
        xmlns:telerikGauge="clr-namespace:Telerik.Windows.Controls.Gauges;assembly=Telerik.Windows.Controls.Gauge"
        mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
      <StackPanel x:Name="LayoutRoot">
            <ToolTipService.ToolTip>
                <TextBlock Text="Tooltip"/>
            </ToolTipService.ToolTip>
            <telerikGauge:LinearScale Width="100" Height="100"/>
            <TextBox Text="Test" Width="100" Height="100"/>
        </StackPanel>
    </UserControl>

    Thanks,
    Claudio
  2. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 09 Mar 2010 Link to this post

    Hello Claudio,

    The RadGauge can automatically create tooltips for scales and scale objects (like tick marks, labels and indicators). Because of this functionality the standard tooltips will not work on the scale objects.
    As workaround you can add another framework element with almost transparent background over the linear scale.
    Please see the sample code below.
    Note that in this case the tooltips for scale objects will not work.
    <StackPanel x:Name="LayoutRoot">
        <ToolTipService.ToolTip>
            <TextBlock Text="Tooltip"/>
        </ToolTipService.ToolTip>
        <Grid>
            <telerikGauge:LinearScale Width="100" Height="100" />
            <Grid Background="#01ffffff" />
        </Grid>
        <TextBox Text="Test" Width="100" Height="100"/>
    </StackPanel>

    Regards,
    Andrey Murzov
    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. Claudio Mesyngier
    Claudio Mesyngier avatar
    5 posts
    Member since:
    Dec 2009

    Posted 09 Mar 2010 Link to this post

    Thanks Andrey!
  5. Tim
    Tim avatar
    85 posts
    Member since:
    Aug 2008

    Posted 28 Mar 2010 Link to this post

    It would be nice if we could use custom Tooltips like on the Chart control (where you can display the next Drill-Down value of the Chart).  This would be nice on the Gauge because you might want to show more detail or something more "flashy".
  6. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 31 Mar 2010 Link to this post

    Hello Tim,

    The gauge control exposes the TooltipFormat property for the scale elements. It allows you to show tooltip with a value that is assigned to the element.
    See more details in the Gauge/Customization/Tooltips example.
    http://demos.telerik.com/silverlight/#Gauge/Customization/Tooltips

    Regards,
    Andrey Murzov
    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.
  7. Tim
    Tim avatar
    85 posts
    Member since:
    Aug 2008

    Posted 01 Apr 2010 Link to this post

    I completely understand that custom "formats" are available.  What I was suggesting is that you allow us to override the whole entire "Content" property of the tooltip just like is possible on the Charts where I can display custom Content when the user hovers over a Bar element for example.

    Take a look at the Drill Down Chart demo and you'll see what I mean when you hover your mouse over a Bar element...

    http://demos.telerik.com/silverlight/#Chart/DrillDown


  8. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 01 Apr 2010 Link to this post

    Hello Tim,

    Thank you for the suggestion.
    We will implement this feature in one of the future version of the control.  I have created a PITS issue #1643. You can check when this feature will be available.

    Sincerely,
    Andrey Murzov
    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.
  9. Alexey Oyun
    Alexey Oyun avatar
    74 posts
    Member since:
    Mar 2010

    Posted 18 May 2010 Link to this post

    Hi,
    Tried to find this issue by ID. With no result.
    Current implementation of PITS does not provide search by ID.
    We have to select version, but from ID I can't figure out which version in belongs to. And trying to search issue in each version by ID is very irritating.
    And I don't get message if search has 0 results, just empty list. And it makes me wonder if search is still going or I got NO RESULT.
    So please provide direct link to issue, while searching is not improved.

    Thank you.
  10. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 20 May 2010 Link to this post

    Hi Alexey,

    Please, accept our apologies for omitting this -- a direct link to an issue in our PITS would look like this:
    http://www.telerik.com/support/pits.aspx#/public/silverlight/xxxx , where 'xxxx' is the issue ID. In this case the link would look like this:

    http://www.telerik.com/support/pits.aspx#/public/silverlight/1643

    Best regards,
    Ves
    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.
Back to Top
DevCraft banner