We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to enable dragging support for pointer

Platform: Xamarin.Forms |
Control: SfCircularGauge

This article explains the steps required to enable dragging support for pointer in the gauge.

MarkerPointer and NeedlePointer can be touched and dragged by setting the EnableDragging property to true. Pointers can be moved to the respective touch position.


   <gauge:MarkerPointer MarkerShape="Image"  Value="4" ImageSource="image1.png"       EnableDragging="True"  MarkerWidth="60" MarkerHeight="60" >        <gauge:MarkerPointer.Offset>
  <OnPlatform x:TypeArguments="x:Double" iOS="0.92" Android="0.95" />  </gauge:MarkerPointer.Offset>
  <gauge:MarkerPointer MarkerShape="Image"  Value="30" ImageSource="image2.png" EnableDragging="True"  MarkerWidth="60" MarkerHeight="60" >
       <OnPlatform x:TypeArguments="x:Double" iOS="0.9" Android="0.95" />
   <gauge:MarkerPointer MarkerShape="Image"  Value="70" ImageSource="image3.png" EnableDragging="True"  MarkerWidth="60" MarkerHeight="60">
      <OnPlatform x:TypeArguments="x:Double" iOS="0.9" Android="0.95" />



The following screenshot illustrates the Gauge with Pointers in which touch and drag can be done.


Dragging pointer using xamarin SfCircularGauge

Please find the complete sample for the above document in this Link.


2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile