This question is locked. New answers and comments are not allowed.
Hi
I'm trying to work with RadialGaugeRange and SegmentedRadialGaugeIndicator, with binding to my DataContext.
This works fine, but when I try to bind the BarIndicatorSegment.Length, then I got a "Set property 'Telerik.Windows.Controls.BarIndicatorSegment.Length' threw an exception. [Line: 44 Position: 67]" exception during the LoadComponent-Call (no ready access to my DataContext object happens).
Here my current code snippet. The RadialGaugeRange has a DataContext assigned in the Page Construtor.
Every binding path exists and has valid values. As far as I can see, all other bindings works fine.
PS: The FallbackValue is just a try ... but had no influence.
Anybody any idea what I'm making wrong?
Have a good time
Michael
I'm trying to work with RadialGaugeRange and SegmentedRadialGaugeIndicator, with binding to my DataContext.
This works fine, but when I try to bind the BarIndicatorSegment.Length, then I got a "Set property 'Telerik.Windows.Controls.BarIndicatorSegment.Length' threw an exception. [Line: 44 Position: 67]" exception during the LoadComponent-Call (no ready access to my DataContext object happens).
Here my current code snippet. The RadialGaugeRange has a DataContext assigned in the Page Construtor.
Every binding path exists and has valid values. As far as I can see, all other bindings works fine.
<telerikDataVisualization:RadialGaugeRange x:Name="gauge" LabelTemplate="{StaticResource TimeLabelTemplate}" TickTemplate="{StaticResource LineTemplate}" CenterMode="CenterCenter" MinAngle="100" MaxAngle="440" MaxValue="{Binding TimeboxDuration, Mode=OneWay}" TickStep="{Binding TimeboxDuration, Converter={StaticResource DurationToIndicatorStep}}" LabelStep="{Binding TimeboxDuration, Converter={StaticResource DurationToLabelStep}}" Margin="10" LabelRadiusScale="0.9"> <telerikDataVisualization:SegmentedRadialGaugeIndicator telerikDataVisualization:RadialGaugeRange.IndicatorRadiusScale="0.6" telerikDataVisualization:RadialGaugeRange.MinAngle="100" telerikDataVisualization:RadialGaugeRange.MaxAngle="440" Value="{Binding TimeboxDuration, Mode=OneWay}" Margin="0" BorderThickness="10" BorderBrush="#FF003200" Padding="90" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"> <telerikDataVisualization:BarIndicatorSegment Length="{Binding WorkingDuration, FallbackValue=10}" Stroke="Blue" Thickness="50" /> <telerikDataVisualization:BarIndicatorSegment Length="{Binding ReminderDuration, FallbackValue=1}" Stroke="Red" Thickness="50" /> </telerikDataVisualization:SegmentedRadialGaugeIndicator> <telerikDataVisualization:ArrowGaugeIndicator telerikDataVisualization:RadialGaugeRange.IndicatorRadiusScale="0.75" telerikDataVisualization:RadialGaugeRange.MinAngle="100" telerikDataVisualization:RadialGaugeRange.MaxAngle="440" ArrowBrush="#FF1FDE4B" ArrowTailRadius="5" ArrowThickness="20" Value="{Binding ElapsedTimeDuration, Mode=OneWay}" /></telerikDataVisualization:RadialGaugeRange >PS: The FallbackValue is just a try ... but had no influence.
Anybody any idea what I'm making wrong?
Have a good time
Michael