How to auto-change Button's FontSize to get the biggest size that will fit in space available?

JohnHardmanJohnHardman GBUniversity mod
edited August 2018 in Xamarin.Forms

I have a Button that will expand to fill a certain part of a ContentPage. How can I calculate the FontSize for the Button, such that the contained Text will be the largest it can be whilst the Button still fits the space available (taking into account FontFamily, FontAttributes, Margin, BorderWidth etc)?

Answers

Sign In or Register to comment.