Problem with color of the Numericindicator

3 posts, 0 answers
  1. Daniel Ruehle
    Daniel Ruehle avatar
    19 posts
    Member since:
    May 2010

    Posted 05 Nov 2010 Link to this post


    I have a trouble whith the color of the numericindicator in my application namely altough the foreground  is setted to blue and it is the same color like scale, color of th numericindicator darker.

    Could please check code below and screenshot.


                                <telerik:Needle x:Name="needleRPM"
                                     Value="{Binding Path=RPM}"
                                     Style="{DynamicResource NeedleStyle1}"                                 
                                        <LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5" MappingMode="RelativeToBoundingBox">
                                            <GradientStop Color="#FFFFD25A" Offset="0.6"/>
                                            <GradientStop Color="#FFFF2222" Offset="1"/>
                                            <GradientStop Color="#FFFFD25A"/>
                                            <GradientStop Color="Red" Offset="0.323"/>
                                <telerik:NumericIndicator x:Name="Speed"
                                    Foreground="{Binding BigGaugeScaleColor}"
                                    Value="{Binding Path=Speed}"                               
                                    <telerik:NumberPosition CornerRadius="25" Margin="1,3,0,3" Background="{x:Null}"/>
                                    <telerik:NumberPosition CornerRadius="25" Margin="1,3" Background="{x:Null}"/>
                                    <telerik:NumberPosition CornerRadius="25" Margin="1,3,0,3" Background="{x:Null}"/>
                                <telerik:RadialBar x:Name="radialBar"
                                    Value="0" VerticalAlignment="Top"
  2. Andrey
    Andrey avatar
    1681 posts

    Posted 10 Nov 2010 Link to this post

    Hello Daniel Ruehle,

    Thank you for feedback.
    We were able to reproduce the problem. The default template for the NumberPosition contains the hardcoded Opacity value. We have created the PITS issue to fix this problem in future releases.
    You can track it using the following link:

    As workaround you can use the a which does not contain this problem.
    The sample code is below.

    <Window x:Class="NumericindicatorColor.MainWindow"
            Title="MainWindow" Height="350" Width="525">
            <Style x:Key="NumberPositionStyle" TargetType="telerik:NumberPosition">
                <Setter Property="VerticalAlignment" Value="Stretch" />
                <Setter Property="HorizontalAlignment" Value="Stretch"/>
                <Setter Property="Background" Value="Transparent"/>
                <Setter Property="Template">
                        <ControlTemplate TargetType="telerik:NumberPosition">
                                <Border BorderBrush="{TemplateBinding BorderBrush}"
                                        BorderThickness="{TemplateBinding BorderThickness}"
                                        Background="{TemplateBinding Background}"
                                        CornerRadius="{TemplateBinding CornerRadius}"
                                        Opacity="{TemplateBinding Opacity}"
                                        Margin="{TemplateBinding Margin}">
                                    <ContentPresenter VerticalAlignment="{TemplateBinding VerticalAlignment}"
                                                      HorizontalAlignment="{TemplateBinding HorizontalAlignment}" />
        <Grid Background="White">
            <Grid Width="200" Height="200" Background="Black">
                <telerik:RadialScale Radius="0.8" Background="Blue">
                        <telerik:NumericIndicator x:Name="Speed"
                            <telerik:NumberPosition Style="{StaticResource NumberPositionStyle}"/>
                            <telerik:NumberPosition Style="{StaticResource NumberPositionStyle}"/>

    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. Daniel Ruehle
    Daniel Ruehle avatar
    19 posts
    Member since:
    May 2010

    Posted 11 Nov 2010 Link to this post

    Hello Andrey,

    Thanks a lot for your help.

    Best regards,
Back to Top