Page 1 of 1

How to hide the axis scale nibs

Posted: Mon Mar 18, 2024 5:23 pm
by Micha_el
Hi,

I'm trying to hide the scale nibs on both sides of an axis. It seems there is no Visible property which can be set to true/false. Instead I tried with:

Code: Select all

axisY.ScaleNibs.Color = Colors.Transparent;
axisY.ScaleNibs.Size = new SizeDoubleXY(0, 0);
But this does not hide the nibs. I can still see them and can still grab them with the mouse:
ScaleNib.png
ScaleNib.png (2.24 KiB) Viewed 3139 times
How can I completely hide them and turn their functionality off?

Re: How to hide the axis scale nibs

Posted: Tue Mar 19, 2024 10:27 am
by ArctionKestutis
To disable zooming with axis ScaleNibs you should just disable Axis.AllowScaling property.