Hi,
When I use CustomTickMark in a RadGauge, I always have this runtime error:
Here a sample of code that I use. My Gauge is more complex but I striped the code just to show the tick mark:
You can see the error in the Output Panel of Visual Studio.
I can still see the mark but I want to be sure I do things properly.
Thanks.
When I use CustomTickMark in a RadGauge, I always have this runtime error:
System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='CustomTickMark'
Here a sample of code that I use. My Gauge is more complex but I striped the code just to show the tick mark:
You can see the error in the Output Panel of Visual Studio.
I can still see the mark but I want to be sure I do things properly.
Thanks.
<
Grid
>
<
telerik:RadGauge
Height
=
"50"
HorizontalAlignment
=
"Left"
Margin
=
"131,146,0,0"
Name
=
"radGauge1"
VerticalAlignment
=
"Top"
Width
=
"100"
>
<
telerik:RadialScale
x:Name
=
"radialScale"
IsEnabled
=
"False"
IsHitTestVisible
=
"False"
Min
=
"0"
Max
=
"75"
MinorTicks
=
"1"
MiddleTicks
=
"2"
MajorTicks
=
"3"
>
<
telerik:TickList
>
<
telerik:CustomTickMark
Value
=
"10"
Location
=
"Inside"
Offset
=
"-0.02"
Format
=
"{}{0:N0}%"
Length
=
"1.3"
TickWidth
=
"0.02"
Foreground
=
"White"
/>
</
telerik:TickList
>
</
telerik:RadialScale
>
</
telerik:RadGauge
>
</
Grid
>