switching between circular gauge and linear gauge on screen orientation

Hello, 

Is there any sample code demonstrating changing from a circular gauge when the screen is in portrait to a linear gauge in landscape?

Any help would be appreciated.


Thanks,

MIke


3 Replies

ET Eswaran Thirugnanasambandam Syncfusion Team December 8, 2021 02:15 PM UTC

Hi Mike Phillips, 
 
Greetings from Syncfusion. 
 
We have checked your requirement and would like to inform you that, we can achieve this by using the OnSizeAllocated framework method. In this method, we can find the device orientation based on the Height and Width of the layout. So, we can load the Circular/Linear gauge from it and the required values of the Gauge are bound from the ViewModel. 
 
We have prepared the sample for the same. Please get it from the below link. 
 
 
Please find the below user guide documentation link for more information about circular and linear gauges 
 
Please let us know if you have need any further assistance. 
 
Regards,  
Eswaran. 



MP Mike Phillips December 8, 2021 04:39 PM UTC

Thank you so much!  this worked out perfect.



ET Eswaran Thirugnanasambandam Syncfusion Team December 9, 2021 05:47 AM UTC

Hi Mike Phillips, 
 
Thanks for your update. 
 
Let us know if you need further assistance. 
 
Regards, 
Eswaran 


Loader.
Up arrow icon