This is a migrated thread and some comments may be shown as answers.

LinearScale.Label - text not showing?

2 Answers 77 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Rob Ainscough
Top achievements
Rank 1
Rob Ainscough asked on 18 Oct 2011, 08:18 PM
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:LinearScale.MajorTick>
             <telerik:MajorTickProperties Location="OverCenter" />         
            </telerik:LinearScale.MajorTick>
            <telerik:LinearScale.MiddleTick>
                <telerik:MiddleTickProperties Location="OverCenter" Length="0.07"/>
            </telerik:LinearScale.MiddleTick>
            <telerik:LinearScale.MinorTick>
                <telerik:MinorTickProperties Location="OverCenter" Length="0.055"/>
            </telerik:LinearScale.MinorTick>
            <telerik:LinearScale.Label>
                <telerik:LabelProperties Offset="1" Location="OverCenter" Margin="0" Foreground="#FF1A1B1B" Width="20" Height="20"/>
            </telerik:LinearScale.Label>
             
            <telerik:RangeList>
                <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:RangeList>
                                             
            <telerik:IndicatorList>
                <telerik:Marker RelativeWidth="0.06" RelativeHeight="0.09" Height="25" IsAnimated="True" Location="OverCenter" >
                </telerik:Marker>
            </telerik:IndicatorList>
             
        </telerik:LinearScale>
    </telerik:LinearGauge>
</telerik:RadGauge>

2 Answers, 1 is accepted

Sort by
0
Rob Ainscough
Top achievements
Rank 1
answered on 19 Oct 2011, 05:32 PM
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.

Rob
0
Andrey
Telerik team
answered on 21 Oct 2011, 01:03 PM
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 >>

Tags
Gauge
Asked by
Rob Ainscough
Top achievements
Rank 1
Answers by
Rob Ainscough
Top achievements
Rank 1
Andrey
Telerik team
Share this question
or