Hide / UnHide Pointer Needle

Gauge for WPF Forum

Posted 9 years ago by Mike Marshall
Version: 10.2.0533
Avatar
I need to hide / unhide a pointer needle on a circular gauge.

Is there as easy way to do this?

I tried setting the XAML as follows

PointerExtent="{Binding NeedleHide}"


The adjust in code behind but it does nothing?

Any ideas appreciated.

Thanks

Comments (2)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Mike,

You should be able to set the Visiblity to Collapsed, to hide it completely. But setting the PointerExtent to 0 should also effectively hide the pointer. So assuming your binding is setup correctly, and it's returning a valid value for the property then it should work. That property is of type Unit, and supports either percentage based sizes or explicit pixel sizes.


Actipro Software Support

Posted 9 years ago by Mike Marshall
Avatar
Thanks..

Working perfectly!

Mike
The latest build of this product (v2019.1 build 0685) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.