Hi,
I am trying to use telerik silverlight gauges, but i cant get it running.
The design pane shows no control there.
The XAML code is as follows
<control:RadGauge x:Name="radGauge" Width="300" Height="300" | |
Style="{StaticResource RadGaugeStyle}"> | |
<gauge:RadialGauge Style="{StaticResource RadialGaugeStyle}"> | |
<gauge:RadialScale x:Name="radialScale" Min="0" Max="100" MajorTicks="10" MiddleTicks="2" MinorTicks="2" |
|
Style="{StaticResource RadialScaleStyle}"> | |
<gauge:RadialScale.MajorTick> | |
<gauge:TickProperties Style="{StaticResource TriangleTickStyle}" /> | |
</gauge:RadialScale.MajorTick> | |
<gauge:RadialScale.MiddleTick> | |
<gauge:TickProperties Style="{StaticResource DefaultTickStyle}" Length="0.07" /> | |
</gauge:RadialScale.MiddleTick> | |
<gauge:RadialScale.MinorTick> | |
<gauge:TickProperties Style="{StaticResource DefaultTickStyle}" Length="0.05" /> | |
</gauge:RadialScale.MinorTick> | |
<gauge:RadialScale.Label> | |
<gauge:LabelProperties Location="Inside" Foreground="White" Style="{StaticResource LabelPropertiesStyle}"/> | |
</gauge:RadialScale.Label> | |
<gauge:RadialScale.Indicators> | |
<gauge:Needle x:Name="needle" IsAnimated="true" Value="20" Style="{StaticResource NeedleStyle}" /> | |
</gauge:RadialScale.Indicators> | |
</gauge:RadialScale> | |
</gauge:RadialGauge> | |
</control:RadGauge> | |
</Grid> | |
</UserControl> |
Can you please tell me what I am missing here while using gauges? There is an error in loading style as it says that it can't find the StaticResources, but when I add following code snippet then the whole snippet shows errors.
<ContentControl.Resources> | |
<ResourceDictionary> | |
<telerik:ResourceDictionary.MergedDictionaries> <telerik:ResourceDictionary Keys="UIText,SolidBrushCombo,RadGaugeStyle,RadialGaugeStyle,RadialScaleStyle,DefaultTickStyle, |
|
TriangleTickStyle,LabelPropertiesStyle,NeedleStyle,RadNumericUpDown,DefaultCombo" Source="/Examples.CS;component/Examples/Gauge/RadGaugeResources.xaml" /> | |
</telerik:ResourceDictionary.MergedDictionaries> | |
</ResourceDictionary> | |
</ContentControl.Resources> | |
it says attached property Resources is not found. Do i need to add these resources in the app.xaml.
I am running visual studios (2008) 9 Team System with the latest patch and I have already installed Microsoft Silverlight kit.Any help will be greatly appreciated (Or can you please point me to some walkthrough for using Gauge Control for silverlight)
Thanks in Advance