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

How to set a transparent background to numerical scale

1 Answer 55 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Gilbert Figueroa
Top achievements
Rank 1
Gilbert Figueroa asked on 24 Feb 2010, 10:43 PM

I have tried modifying background to numberPosition but what it does, is setting the default background.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 26 Feb 2010, 09:39 AM
Hello Gilbert Figueroa,

Unfortunately we cannot reproduce this issue.
Could you, please, provide us with your code snippet for testing?
To reproducing we've used 2009.3 1314 version and the following XAML:
<Window x:Class="WpfNumberPositionBackground.Window1"
xmlns="http%3A%2F%2Fschemas%2Emicrosoft%2Ecom/winfx/2006/xaml/presentation"
xmlns:x="http%3A%2F%2Fschemas%2Emicrosoft%2Ecom/winfx/2006/xaml"
xmlns:telerik="http%3A%2F%2Fschemas%2Etelerik%2Ecom/2008/xaml/presentation"
    Title="Window1" Height="300" Width="300">
    <Grid Background="White">
        <Grid.Resources>
            <ResourceDictionary>
                <Style x:Key="red" TargetType="telerik:NumberPosition">
                    <Setter Property="Background" Value="Red" />
                </Style>
            </ResourceDictionary>
        </Grid.Resources>
        <telerik:NumericScale Min="0"
                              Max="100000"
                              Width="200"
                              Height="85">
            <telerik:IndicatorList>
                <telerik:NumericIndicator Top="0"
                                          Left="0"
                                          RelativeWidth="1"
                                          RelativeHeight="1"
                                          Format="{}{0:F0}"
                                          Value="123456"
                                          FontFamily="Arial"
                                          Background="Transparent"
                                          FontSize="30">
                    <telerik:NumberPosition Background="Transparent" />
                    <telerik:NumberPosition Style="{StaticResource red}" />
                    <telerik:NumberPosition Background="Yellow" />
                    <telerik:NumberPosition Background="GreenYellow" />
                    <telerik:NumberPosition Background="YellowGreen" />
                    <telerik:NumberPosition Background="Green" />
                </telerik:NumericIndicator>
            </telerik:IndicatorList>
        </telerik:NumericScale>
    </Grid>
</Window>

All the best,
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.
Tags
Gauges
Asked by
Gilbert Figueroa
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or