BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Martin,
Thanks for using Syncfusion Products.
As per the implementation, the CircularPointer in the
CircularScale is of type DependencyObject. So it does not have any DataContext
from its parent. Therefore while bind the value for the CircularPointer it does
not have any DataContext as its Source.
Therefore we can achieve this scenario through the following
Code Snippet:
·
Set the Resource
<Page.Resources>
<local1:MyViewModel x:Key="dataSource"
/>
</Page.Resources>
·
Bind the Value Property by set the Resource key
as a Source
<syncfusion:CircularScale.Pointers>
<syncfusion:CircularPointer PointerType="NeedlePointer" Value="{Binding Source={StaticResource dataSource}, Path=Value}" />
</syncfusion:CircularScale.Pointers>
·
Inorder to Move the NeedlePointer we can bind it
with a slider with the same object as a source to move the pointer dynamically.
·
Set the DataContext for the parent grid of the
Slider.
<Grid DataContext="{Binding Source={StaticResource dataSource}}" >
<Slider Value="{Binding Value,Mode=TwoWay}" Minimum="0" Maximum="100" />
Note : In your
Code Snippet you have mentioned that the PointerType property is Set as
RangePointer and you have used used NeedlePointerStroke Property in it. Instead
of that you can use RangePointerStroke property to apply stroke for the pointer.
We have also attached a sample for the same.
Regards,
Joy Oyiess Rex.K
Hi Martin,
Thanks for your update.
As you have mentioned we have created a Singleton class for changing the value of the CircularGauge pointer. For your reference we have attached the sample below.
Please try the sample and let us know if this helps you. Please let us know if you require further clarifications.
Regards,
Baskaran S
Hi Martin,
Thanks for your feedback.
Please let us know, if you have any further assistance.
Regards,
Joy Oyiess Rex.K
Hi Cesar,
Thank you for using Syncfusion Products.
Based on your requirement we have created a
simple sample to dynamically update the Value of the CircularPointer (in the tab
control). Please find the sample in the attachment.
If the provided solution doesn't meet your
requirement, Please revert us back with more information by thus we could assist
you better.
Please let us know, if you need any further
assistance.
Best Regards,
Joy Oyiess Rex K
I am having the same issue as Martin was, except in WPF. Can I get a copy of the sample you provided him.
Thanks
Hi Nick,
Thanks for your interest in Syncfusion Products.
We have attached the samples in the attachment below,
Please let us know, if you need any further assistance.
Regards,
Joy Oyiess Rex K
Hi Daniel,
Thanks for your interest in Syncfusion Products.
Due to some server issue we are unable to retrieve these
samples. As of now we have prepared a sample related to this query. Please find
the sample in the attachment.
Please let us know, if you need any further assistance.
Regards,
Nijamudeen M.