What's the best way to automatically size a button to fully contain its text, with padding to L & R?

JohnHardmanJohnHardman GBUniversity mod

What's the best way to automatically size a button to fully contain its text, with some padding to the left and right of the text? For the purpose of this question, there is no wrapping involved. Some way of calculating the value to pass as MinimumWidthRequest based on the text content is what I am after.

Many thanks,

John H.

Sign In or Register to comment.