Adding multible symbol pointers problem
Hi All,
1. I have the following problem. Am trying to dynamically add symbol pointers to the linear gauge control using the Dispatcher as the example code below. The thing is the last added symbol pointer to the Pointers collection never show up. I tried different Dispatchers and even the UpdateLayout() but still nothing. Am I doing something wrong?
//Application.Current.Dispatcher.Invoke(new Action(() =>
//this.LinearGauge.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.ApplicationIdle, new Action(() =>
this.Dispatcher.Invoke(new Action(() =>
{
foreach (var order in e.NewItems)
{
LinearPointer linearPointer = new LinearPointer();
linearPointer.PointerType = LinearPointerType.SymbolPointer;
linearPointer.Value = Convert.ToDouble(order.Price);
linearPointer.SymbolPointerHeight = 10;
linearPointer.SymbolPointerWidth = 10;
linearPointer.SymbolPointerPosition = LinearSymbolPointersPosition.Below;
linearPointer.SymbolPointerStroke = (SolidColorBrush)new BrushConverter().ConvertFrom("#00FF00");
LgScale.Pointers.Add(linearPointer);
//LgScale.UpdateLayout();
//LinearGauge.UpdateLayout();
}
}));
2. In your examples doesn’t show how to use linear gauge control (e.g. adding symbol pointers, control ranges...) in the MVVM pattern. Does it support MVVM and how?
Thanks a lot
Stelios
Greetings from Syncfusion.
Query 1: Last added symbol pointer to the Pointers collection never show up
We have checked the reported problem and we can able to reproduce it. We will update the further details on May 7,2021
Query 2: In your examples doesn’t show how to use linear gauge control (e.g. adding symbol pointers, control ranges...) in the MVVM pattern. Does it support MVVM and how?
SfLinerGauge control support MVVM pattern, we have prepared the sample for your requirement. Please have a sample from below link
https://www.syncfusion.com/downloads/support/directtrac/general/ze/SampleGauge-2138592680
Let us know if you need any further assistance.
Regards,
Sridevi S.
We have checked and validated both the issues "Last pointer not added when adding multiple pointers dynamically and pointers and ranges binding not working" and confirmed it as a bug. We have logged a bug report for both the issues, and you can keep track of the bug from the feedback portal below.
Link: https://www.syncfusion.com/feedback/25077
The provided feedback link is private, and you need to log in to view this feedback.
We will fix the reported issues and provide the patch on May 20, 2021.
If you have any more specifications/precise replication procedures or a scenario to be tested, you can add it as a comment in the portal.
Regards,
Sridevi S.
Assembly Version: 19.1.0.63
Disclaimer:
Please note that we have created this patch for version 19.1.0.63 specifically to resolve the following issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received.
The fix will be included in our weekly NuGet release which is expected to be rolled out on May 25, 2021.
Regards,
Sridevi S.
We have fixed “Last pointer not added when adding multiple pointers dynamically and pointers and ranges binding not working” issue and the fix is included in our weekly NuGet of May 25, 2021.
NuGet Version: 19.1.0.65
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Sridevi S.
- 5 Replies
- 2 Participants
- Marked answer
-
ST Stelios
- May 4, 2021 08:21 PM UTC
- May 25, 2021 01:15 PM UTC