Named Font sizes

Hi,

Is there a possibility to use named font sizes for instead of hardcoding the size?

primaryHeader.TextSize = 20; // I would like to avoid 20

Thanks and regards,
John

3 Replies

SG Sri Gayathri Gopalakrishnan Syncfusion Team November 17, 2017 09:15 AM UTC

Hi John,

We have validated your query and currently we do not have support for “Named Font Sizes” in CircularGauge. We have logged a feature request on “Support for Named Font Sizes in CircularGauge". A support incident to track the status of this feature has been created under your account.Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/  

Please get back to us if you need any other assistance.

Regards,
Sri Gayathri. G


EM Emil November 23, 2017 05:19 PM UTC

I would like to follow up this as well. it is nice to have in xaml but there is a workaround in the code behind which works fine for me. you can name your header and set like below

 HeaderTimer.TextSize = Device.GetNamedSize(NamedSize.Large, typeof(Label));

although above works fine. sizes are too small for header usage. see below, green one is large and blue one is micro. 





DA Devi Aruna Maharasi Murugan Syncfusion Team November 24, 2017 07:39 AM UTC

Hi Emil, 
  
Thanks for your update. 
  
You can achieve named font size support for headers of circular gauge in sample level with the mentioned code. 
  
Sizes are too small for header usage, when setting NamedSize: 
  
We have checked by setting named size in Xamarin Forms Label control and the same size is appeared both Label’s Text and gauge header in all platforms. Therefore, the size is set by Framework, when setting NamedSize property. 
  
If your requirement is to view the header of gauge in larger size, we recommend you to provide hard code value for header’s TextSize. 
  
Regards, 
Devi 



Loader.
Up arrow icon