Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Inherit font attributes from container? Or other way to set common font on multiple widgets?

$
0
0

In Windows.Forms, I am accustomed to setting Font on the form, and then the children (e.g. labels) inherit that font.
Is there an equivalent function in Xamarin.Forms, for a Page?
If not, is there some efficient way to not specify font for every label etc?

In particular, if decide to CHANGE the font used (at build time), not have to make that change in multiple places?

I am creating the UI elements in code, because some are dynamically generated.
I use StackLayout and AbsoluteLayout, on different pages.

If necessary, I will create a function that sets the font as desired, and call that on all the labels at runtime. But that would be a kludge.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>