LinearScale.Label - text not showing?

3 posts, 0 answers
  1. Rob Ainscough
    Rob Ainscough avatar
    262 posts
    Member since:
    Jan 2010

    Posted 18 Oct 2011 Link to this post

    I'm using the LinearGauge with orientation set to "Horizontal".  I'm getting strange results with being able to see the labels in the scale ... they don't show up??  I got them to show once (and only once) by setting the Width and Height to a fixed size (20), but as soon as I change the font they disappear??  And now I can't seem to get them back ... XAML is below.   Any suggestions?

    <telerik:RadGauge Margin="0,2" Grid.Column="5" Grid.RowSpan="2" Grid.ColumnSpan="2">
        <telerik:LinearGauge RenderTransformOrigin="0.5,0.5" OuterBorderThickness="0" BorderThickness="1" BorderBrush="Black" OuterBackground="{x:Null}" OuterBorderBrush="{x:Null}">
            <telerik:LinearScale Margin="35,10" Orientation="Horizontal" RelativeHeight="1" StartWidth="1" EndWidth="1" Left="0" Min="0" Max="100" Top="0.09">
                 <telerik:MajorTickProperties Location="OverCenter" />         
                    <telerik:MiddleTickProperties Location="OverCenter" Length="0.07"/>
                    <telerik:MinorTickProperties Location="OverCenter" Length="0.055"/>
                    <telerik:LabelProperties Offset="1" Location="OverCenter" Margin="0" Foreground="#FF1A1B1B" Width="20" Height="20"/>
                    <telerik:LinearRange Min="0" Max="50" StartWidth="0.09" EndWidth="0.09" Location="OverCenter" Background="{StaticResource red}" BorderBrush="#7FFFFFFF"  />
                    <telerik:LinearRange Min="50" Max="75" StartWidth="0.09" EndWidth="0.09" Location="OverCenter" Background="{StaticResource yellow}" BorderBrush="#7FFFFFFF"  />
                    <telerik:LinearRange Min="75" Max="100" StartWidth="0.09" EndWidth="0.09" Location="OverCenter" Background="{StaticResource green}" BorderBrush="#7FFFFFFF"  />
                    <telerik:Marker RelativeWidth="0.06" RelativeHeight="0.09" Height="25" IsAnimated="True" Location="OverCenter" >
  2. Rob Ainscough
    Rob Ainscough avatar
    262 posts
    Member since:
    Jan 2010

    Posted 19 Oct 2011 Link to this post

    After spending a day trying to figure out this problem, lots of R&D and testing different properties/values to try to get my labels to be visible.  The solution was to exit Blend 4 and restart Blend 4 ... I can't determine if this is a Microsoft Blend 4 bug or if it's a bug with Telerik RadGauge. 

    I'm leaning toward a Blend 4 bug as I've found several other "display/redraw" bugs in Blend 4 using the standard Microsoft set of SL Controls.  I really hope Microsoft do something about the next version of Blend, it's horribly slow (even on a fast PC) and VERY buggy.

    FYI, I do have the latest build/update for Blend 4.  Vista x64, lastest ATI drivers for 5770 HD card.

    So if anyone else runs into strange issues of controls not displaying some of their content, try restarting Blend 4.

  3. Andrey
    Andrey avatar
    1681 posts

    Posted 21 Oct 2011 Link to this post

    Hello Rob Ainscough,

    Thank you for the information. The current version fo the RadGauge doesn't have a good design time support in Blend. So it could be mix of a gauge and Blend problems. We are working on the new implementation of the gauge control which will be available in the 2011.Q3 release. It will have better design time support. The previw of the new control will be available in the 2011.Q3 Beta.

    Kind regards,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top