I have setup RadialGauge in xaml like this:
It works well running the application inside VS 2010. It crashes when I run a ClickOnce version of the application on the same computer. Exception given Is:
Cannot create instance of 'Needle' defined in assembly 'Telerik.Windows.Controls.Gauge, Version=2010.3.1314.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'. Exception has been thrown by the target of an invocation. Error at object 'Telerik.Windows.Controls.Gauges.IndicatorList' in markup file.
Nothing in code behind except these using statements:
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.Gauges;
Regards
Arnvid
<
telerik:RadGauge
x:Name
=
"wciGauge"
Width
=
"300"
Height
=
"300"
HorizontalAlignment
=
"Right"
Grid.Column
=
"0"
Grid.Row
=
"2"
Grid.ColumnSpan
=
"2"
><
br
> <
telerik:RadialGauge
><
br
> <
telerik:RadialScale
Min
=
"0"
Max
=
"100"
><
br
> <
telerik:RangeList
><
br
> <
telerik:RadialRange
Name
=
"Green"
Min
=
"0"
Max
=
"30"
StartWidth
=
"0.05"
EndWidth
=
"0.05"
Location
=
"Inside"
Background
=
"Green"
BorderBrush
=
"LightGray"
/><
br
> <
telerik:RadialRange
Name
=
"Yellow"
Min
=
"30"
Max
=
"50"
StartWidth
=
"0.05"
EndWidth
=
"0.05"
Location
=
"Inside"
Background
=
"Yellow"
BorderBrush
=
"LightGray"
/><
br
> <
telerik:RadialRange
Name
=
"Orange"
Min
=
"50"
Max
=
"70"
StartWidth
=
"0.05"
EndWidth
=
"0.05"
Location
=
"Inside"
Background
=
"Orange"
BorderBrush
=
"LightGray"
/><
br
> <
telerik:RadialRange
Name
=
"Red"
Min
=
"70"
Max
=
"100"
StartWidth
=
"0.05"
EndWidth
=
"0.05"
Location
=
"Inside"
Background
=
"Red"
BorderBrush
=
"LightGray"
/><
br
> </
telerik:RangeList
><
br
> <
telerik:IndicatorList
><
br
> <
telerik:Needle
Name
=
"needleIndicator"
Value
=
"{Binding CurrentWci.Score}"
/><
br
> <
telerik:StateIndicator
Name
=
"stateIndicator"
Left
=
"0.48"
Top
=
"0.60"
RelativeWidth
=
"0.1"
RelativeHeight
=
"0.1"
Value
=
"{Binding CurrentWci.Score}"
/><
br
> <
telerik:NumericIndicator
Name
=
"numericIndicator"
Value
=
"{Binding CurrentWci.Score}"
Format
=
"{}{0:F0}"
FontSize
=
"16"
FontFamily
=
"Arial"
BorderBrush
=
"Transparent"
<br> Background="Transparent" Foreground="AntiqueWhite" Left="0.3" Top="0.80" RelativeWidth="0.55" RelativeHeight="0.16"><
br
> <
telerik:NumberPosition
Background
=
"Transparent"
BorderThickness
=
"0"
/><
br
> <
telerik:NumberPosition
Background
=
"Transparent"
BorderThickness
=
"0"
/><
br
> <
telerik:NumberPosition
Background
=
"Transparent"
BorderThickness
=
"0"
/><
br
> </
telerik:NumericIndicator
><
br
> </
telerik:IndicatorList
><
br
> </
telerik:RadialScale
><
br
> </
telerik:RadialGauge
><
br
> </
telerik:RadGauge
><
br
>
It works well running the application inside VS 2010. It crashes when I run a ClickOnce version of the application on the same computer. Exception given Is:
Cannot create instance of 'Needle' defined in assembly 'Telerik.Windows.Controls.Gauge, Version=2010.3.1314.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'. Exception has been thrown by the target of an invocation. Error at object 'Telerik.Windows.Controls.Gauges.IndicatorList' in markup file.
Nothing in code behind except these using statements:
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.Gauges;
Regards
Arnvid