Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Label Size Depends On Device And Label

$
0
0

Hi all,
My problem is to create a dynamic label font size depends on device. If this is not possible, also getting label height value solves my problem.

In my scenario, label gets his height from the grid row and grid row has height value is defined with *. So I've never used any static height values.
If i can get label height i would like to define font size like %80 of label height.

I define my controls on xaml page but this is not mandatory for me, if this problem can be solved by cs code side, I can move all my control definitions to there.

P.S : I know that there are many questions about font size but all of them are related with previous versions of xamarin.forms and they solved that problem with xlabs class and i think that class is outdated for now.


Viewing all articles
Browse latest Browse all 204402

Trending Articles