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


5 Replies 1 reply marked as answer

SS Sridevi Sivakumar Syncfusion Team May 5, 2021 02:49 PM UTC

Hi 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.
 



ST Stelios May 5, 2021 07:10 PM UTC

I have already tried what you have on your sample and I got the same error as your sample gives.
You can check on the attached photo the error that your sample is giving.

Thank you for your support

Stelios



SS Sridevi Sivakumar Syncfusion Team May 6, 2021 12:45 PM UTC

Hi Stelios,

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. 



SS Sridevi Sivakumar Syncfusion Team May 21, 2021 01:13 PM UTC

Hi Stelios,  
  
We have fixed the reported issue “Last pointer not added when adding multiple pointers dynamically and pointers and ranges binding not working”. The patch and NuGet for the fix can be downloaded from the below link.   
  
Please find the patch from below link  
  
Please find the patch assemblies alone from below location:   
 
 Please find the NuGet from below location:  
https://syncfusion.com/Installs/support/patch/19.1.0.63/1359929/F165151/SyncfusionNuget_19.1.0.63_1359929_5212021075600244_F165151.zip

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
. 
 
   
To Clear the cache:  
 
Follow the below link to clear cache,    
 
The fix will be included in our weekly NuGet release which is expected to be rolled out on May 25, 2021.
  
   
We appreciate your patience until then.

Regards,
Sridevi S.
 
 


Marked as answer

SS Sridevi Sivakumar Syncfusion Team May 25, 2021 01:15 PM UTC

Hi Stelios,

We have fixed “L
ast 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. 


Loader.
Up arrow icon