Greetings, I am attempting to use the LinearScale to show a simple horizontal gauge with a Custom TickList that I am attempting to databind the ItemsSource to a POCO. I do not want any other tick marks to show on the gauge. Is this possible? I keep getting an error about the ticks collection not being empty.
<telerik:RadGauge Height="50" HorizontalAlignment="Left" Margin="10,20,0,0" Name="radGauge1" VerticalAlignment="Top" Width="300"> |
<telerik:LinearScale Name="linearScale" Orientation="Horizontal" Width="300" Height="40" Left="0.02" Top="0.06" MajorTicks="0" |
Min="0" Max="{Binding Resident.ResidentType.CareLevels, Converter={StaticResource CareLevelToMaxRangeConverter}}" |
StartWidth="0.02" EndWidth="0.02" StrokeThickness="0.5"> |
<telerik:TickList ItemsSource="{Binding Resident.ResidentType.CareLevels, Converter={StaticResource CareLevelToTicksConverter}}"> |
</telerik:TickList> |
<telerik:RangeList ItemsSource="{Binding Resident.ResidentType.CareLevels, Converter={StaticResource CareLevelToRangeConverter}}"/> |
<telerik:IndicatorList> |
<telerik:LinearBar Width="10" Name="linearBar" TooltipFormat="Daily Minutes: {0:F1}" |
Value="50" |
Location="CenterInside" SnapType="None"/> |
</telerik:IndicatorList> |
</telerik:LinearScale> |
</telerik:RadGauge> |