Hello,
I need to create a scale, showing the Major tick at the beginning/at the end of the scale.
In order to do this, I've set ShowLastLabel to false. The data on the scale changes every 200 m/s. The last label sometimes blinks, even though the property ShowLastLabel is set to false.
If I change EndTickOffset, instead of changing ShowLastLabel, then I do not see the Major tick at the end of the scale.
See the attached example.
<telerik:RadVerticalLinearGauge
FontSize="16"
Background="Green"
HorizontalAlignment="Left"
Width="3"
Margin="30,94,0,95"
>
<telerik:VerticalLinearScale
Max="{Binding Max,FallbackValue=20}"
Min="{Binding Min,FallbackValue=0}"
Background="Green"
LabelLocation="Inside"
FontSize="16"
StartTickOffset="{Binding TickOffset,FallbackValue=0}"
EndTickOffset="{Binding TickOffset,FallbackValue=0}"
ShowFirstLabel="False"
ShowLastLabel="False"
MajorTickStep="10"
IsInteractive="True"
MinorTickBackground="Red"
MiddleTicks="2"
MiddleTickBackground="Green"
MiddleTickLocation="Outside"
LabelOffset="16"
MiddleTickRelativeWidth="5"
MiddleTickRelativeHeight="0.015*"
MajorTickRelativeWidth="20"
MajorTickRelativeHeight="0.015"
EndWidth="0.03"
StartWidth="0.03"
MinorTicks="1"
>
</telerik:VerticalLinearScale>
</telerik:RadVerticalLinearGauge>
Timer timer= new Timer(200);
public MainWindow()
{
InitializeComponent();
DataContext = this;
timer.Elapsed += Timer_Elapsed;
timer.Start();
}
private void Method(double value)
{
Val = value.ToString();
Min = value - 10;
Max = value + 10;
double startValue = Math.Round(Min / 10) * 10;
TickOffset = startValue - Min;
}