Xamarin Forms: How can I add padding to a button?

前端 未结 6 1107
天涯浪人
天涯浪人 2021-02-01 19:30

I have the following XAML Xamarin.Forms.Button

I tried to add

6条回答
  •  春和景丽
    2021-02-01 20:08

    Update:

    Padding has been added to the XF Button control in Xamarin.Forms v3.2+

    Old:

    The best way to do it would be to increase the size of the button.

    Then align the text as you see fit. Unfortunately it is about the best you can do. It works well if you have your text center aligned. Not so much if its left or right aligned.

提交回复
热议问题