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

Free Gauge, styles not found

5 Answers 138 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 26 Oct 2010, 03:49 PM
Just downloaded the free Gauge, and want to use a Quarter gauge, so copied xaml from QuarterCircleGauges online example,

<telerik:RadGauge x:Name="radGauge" Height="250" Width="250">
            <Gauges:RadialGauge x:Name="radialGauge" 
                Style="{StaticResource RadialGaugeQuarterCircleNWStyle}">
                <Gauges:RadialScale x:Name="radialScale"
                    Style="{StaticResource RadialScaleQuarterCircleNWStyle}">
                    <Gauges:RadialScale.MajorTick>
                        <Gauges:MajorTickProperties />
                    </Gauges:RadialScale.MajorTick>
                    <Gauges:RadialScale.MiddleTick>
                        <Gauges:MiddleTickProperties Length="0.05" TickWidth="0.2" />
                    </Gauges:RadialScale.MiddleTick>
                    <Gauges:RadialScale.MinorTick>
                        <Gauges:MinorTickProperties Length="0.03" TickWidth="0.3" />
                    </Gauges:RadialScale.MinorTick>
                    <Gauges:RadialScale.Label>
                        <Gauges:LabelProperties Location="Outside" />
                    </Gauges:RadialScale.Label>
                    <Gauges:IndicatorList>
                        <Gauges:Needle x:Name="needle" IsAnimated="True" Value="65" />
                    </Gauges:IndicatorList>
                </Gauges:RadialScale>
            </Gauges:RadialGauge>
        </telerik:RadGauge>

added in the ResouceDictionary section in UserControl.Resources

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Controls.Gauge;component/Themes/Generic.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

But still have wiggly line under the
RadialGaugeQuarterCircleNWStyle
and
RadialScaleQuarterCircleNWStyle


Any thoughts?

Many Thanks
Paul

Any update on this? Trying to get purchase order for SL controls, and this is part of what's needed for proof-of-purchase!

5 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 28 Oct 2010, 05:46 PM
Hi Paul,

I've copied your XAML into a test page and everything worked just fine. Here is the full XAML of the test page:

<UserControl x:Class="Telerik.RadGauge.Silverlight.MainPage"
     Width="1000" Height="800">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Controls.Gauge;component/Themes/Generic.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadGauge Name="radGaugeNW">
            <telerik:RadialGauge Style="{StaticResource RadialGaugeQuarterCircleNWStyle}">
                <telerik:RadialScale Style="{StaticResource RadialScaleQuarterCircleNWStyle}">
                    <telerik:RadialScale.MajorTick>
                        <telerik:MajorTickProperties />
                    </telerik:RadialScale.MajorTick>
                    <telerik:RadialScale.MiddleTick>
                        <telerik:MiddleTickProperties Length="0.05" TickWidth="0.2" />
                    </telerik:RadialScale.MiddleTick>
                    <telerik:RadialScale.MinorTick>
                        <telerik:MinorTickProperties Length="0.03" TickWidth="0.3" />
                    </telerik:RadialScale.MinorTick>
                    <telerik:RadialScale.Label>
                        <telerik:LabelProperties Location="Outside" />
                    </telerik:RadialScale.Label>
                    <telerik:IndicatorList>
                        <telerik:Needle x:Name="needle" IsAnimated="True" Value="65" />
                    </telerik:IndicatorList>
                </telerik:RadialScale>
            </telerik:RadialGauge>
        </telerik:RadGauge>
    </Grid>
</UserControl>

Please, check that all necessary DLLs are referenced from your Silverlight application:

Telerik.Windows.Controls.dll
Telerik.Windows.Data.dll
Telerik.Windows.Controls.Gauge.dll

Best wishes,
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
0
Paul
Top achievements
Rank 1
answered on 29 Oct 2010, 07:51 AM
Tried copying your snippet, and still doesn't work.
Got references to the 3 dll's
changed to use the xmlns of schemas.telerik.com as opposed to having three namespaces for the dll's

Are you testing with just the free gauge dll on your system, or do you have the full controls installed?

Again, here's my xaml, with the namespace difference

as an aside, your posted xaml doesn't copy out of the webpage very well, spaces get eaten. try copying it out and pasting into vs.

<UserControl x:Class="telerikGauge.MainPage"
     Width="1000" Height="800">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Controls.Gauge;component/Themes/Generic.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadGauge x:Name="radGaugeNW">
            <telerik:RadialGauge Style="{StaticResource RadialGaugeQuarterCircleNWStyle}">
                <telerik:RadialScale Style="{StaticResource RadialScaleQuarterCircleNWStyle}">
                    <telerik:RadialScale.MajorTick>
                        <telerik:MajorTickProperties/>
                    </telerik:RadialScale.MajorTick>
                    <telerik:RadialScale.MiddleTick>
                        <telerik:MiddleTickProperties Length="0.05" TickWidth="0.2"/>
                    </telerik:RadialScale.MiddleTick>
                    <telerik:RadialScale.MinorTick>
                        <telerik:MinorTickProperties Length="0.03" TickWidth="0.3"/>
                    </telerik:RadialScale.MinorTick>
                    <telerik:RadialScale.Label>
                        <telerik:LabelProperties Location="Outside"/>
                    </telerik:RadialScale.Label>
                    <telerik:IndicatorList>
                        <telerik:Needle x:Name="needle" IsAnimated="True" Value="65"/>
                    </telerik:IndicatorList>
                    </telerik:RadialScale>
                    </telerik:RadialGauge>
                    </telerik:RadGauge>
                    </Grid>
 
</UserControl>

0
Andrey
Telerik team
answered on 02 Nov 2010, 06:23 PM
Hi Paul,

I'm sorry, the Quarter and Half circle styles have been removed from the FREE DLL by mistake. We will check the issue and let you know.  

Sincerely yours,
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
0
Andrey
Telerik team
answered on 03 Nov 2010, 08:57 AM
Hi Paul,

We have replaced the DLLs, so you should not have problems with the new ones. Please, download fresh free DLLs from our site.

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
0
Paul
Top achievements
Rank 1
answered on 03 Nov 2010, 09:21 AM
Thats sorted it out.
Many thanks for getting this updated.

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