Numeric Gauge - how to show dynamic values as tooltip in this control

2 posts, 1 answers
  1. Shanmugam
    Shanmugam avatar
    5 posts
    Member since:
    Oct 2010

    Posted 14 Dec 2010 Link to this post

    Please let me know, how to show dynamic values (i.e. #DATAITEM values) as a tooltip in this numeric gauge control.

  2. Answer
    Andrey avatar
    1681 posts

    Posted 16 Dec 2010 Link to this post

    Hi Shanmugam,

    I think you can use standard ToolTipService.ToolTip property for the numeric gauge.
    But you should set the data item to the DataContext property of numeric indicator to bind its properties.
    The sample XAML code is below.
    <telerik:NumericIndicator x:Name="numericIndicator">
        <telerik:NumberPosition CornerRadius="0" />
        <telerik:NumberPosition CornerRadius="0" />
        <telerik:NumberPosition CornerRadius="0"  RelativeWidth="0.5" />
        <telerik:NumberPosition CornerRadius="0" />
        <telerik:NumberPosition CornerRadius="0" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                <TextBlock Grid.Row="0" Text="{Binding TotalNoOfIterationsforTooltip, StringFormat='Number of Iterations : {0}'}" />
                <TextBlock Grid.Row="1" Text="{Binding TotalPostPonedEfforts, StringFormat='Total Postponed Effort : {0} Hours'}" />

    Andrey Murzov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top