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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dynamically adding new circular pointers on the fly

Thread ID:





93094 Feb 23,2010 07:17 AM UTC Feb 24,2010 09:11 AM UTC WPF 1
Tags: Gauge
Administrator [Syncfusion]
Asked On February 23, 2010 07:17 AM UTC

How would one dynamically add new circular pointers?

I've noticed that the pointers property is not a dependency property thus I'm unable to bind it.

I tried:
public void RefreshPointers()
//clear existing pointers
CircularPointer newPointer;
int counter = 0;

foreach (NodeFaceItem item in
newPointer = new CircularPointer();
newPointer.BorderWidth = 0.3;
newPointer.PointerLength = 66;
newPointer.EnablePointerInteraction = false;
newPointer.PointerWidth = 5;
Binding valueBinding = new Binding("SafeValue");
valueBinding.Source = item;

newPointer.Value = item.SafeValue;
newPointer.PointerNeedleType =
newPointer.PointerPlacement =
newPointer.BackgroundBrush =
_itemBrushes[counter % _itemBrushes.Length];
newPointer.Visibility = Visibility.Visible;
newPointer.Name = "p" + counter.ToString();

I even tried InvalidateVisual, but sometimes that throws an exception from the Refresh angle method that is hidden from me.

Ganesh Kanna S [Syncfusion]
Replied On February 24, 2010 09:11 AM UTC

Hi HeetendraGowin,

Thanks for your interest in Syncfusion products.

We are able to reproduce the issue mentioned by you. While adding the pointers dynamically ,its added in the collection whereas visual is not updated. We have logged a defect issue for the same and it will be fixed in a week’s time. We will update you with custom assemblies once the issue is fixed.
Please let us know if you have any queries.

Ganesh Kanna S


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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