Hello,
In the first look on-line demo of the Gauge, you create a custom item like this:
How can I set the ScaleObject.Value property via code instead of XAML?
I tried giving the PATH a name, but couldn't access the Value. Then tried setting it this way:
But received a run time error that said it was that: '40' is not a valid value for property 'Value'.
Any help would be appreciated,
Scott
In the first look on-line demo of the Gauge, you create a custom item like this:
<
Path
Style
=
"{StaticResource CustomPin}"
telerik:ScaleObject.Value
=
"200"
Data
=
"M2.5,1 C1.7,1 1,1.7 1,2.5 C1,3.3 1.7,4 2.5,4 C3.3,4 4,3.3 4,2.5 C4,1.7 3,1 2.5,1 z M2.5,0 C4,0 5,1 5,2.5 C5,3.7 4.1,4.7 3,5 L3,5 L3,10 L2,10 L2,5 L2,5 C0.9,4.7 0,3.7 0,2.5 C0,1 1,0 2.5,0 z"
/>
How can I set the ScaleObject.Value property via code instead of XAML?
I tried giving the PATH a name, but couldn't access the Value. Then tried setting it this way:
ThePath.SetValue(ScaleObject.ValueProperty, 40);
But received a run time error that said it was that: '40' is not a valid value for property 'Value'.
Any help would be appreciated,
Scott