Xamarin.Forms: Remove padding inside Button

前端 未结 4 776
无人及你
无人及你 2021-02-13 07:12

I want to have a small button. The height of the button is 30. On some plattforms (Android, UWP) the text inside the button is cut off. That\'s because there is a padding betwee

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-13 07:26

    One option is to use a Label instead of a Button, and use a TapGestureRecognizer instead of Click events. The Label gives you more control over the layout of the text than a Button, but you don't get the advantage of it being translated into the native button control on each platform.

提交回复
热议问题