Ask Your Question
4

In .NET MAUI, how can the padding of a button be adjusted to occupy 25% of the screen?

asked 2023-05-14 11:20:51 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-14 11:25:01 +0000

scrum gravatar image

In .NET MAUI, you can adjust the padding of a button to occupy 25% of the screen using the following code:

<Button Padding="0,0,0,0" WidthRequest="25%"/>

This sets the padding of the button to 0 on all sides and also sets its width request to 25% of the screen.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-14 11:20:51 +0000

Seen: 8 times

Last updated: May 14 '23