Scale button to text Xamarin Forms

Viewed 314

Is there a way to scale a button to it's text or align the text left? I have created a static method that allows me to set a generic theme for my buttons. I know you can use LayoutOptions.Start to make the button go to the left of the page.

public static void DefaultButtonTheme(Button button)
{ 
    //previous code
    .
    .
    button.HorizontalOptions = LayoutOptions.Start;
}

However, for text smaller than a certain amount of letters it is center of the button.

See image below.

enter image description here

1 Answers
Related