Why can not I reduce the width of the button?

I am working on a universal application. When I design a view for a Windows Phone 8.1 project, I cannot make any button width smaller than 109. If I set the button width property to be smaller than ever, it becomes 109 when rendering.

I would like to know how to make the button be smaller than this, and why this restriction exists in the first place.

Thank you for help!

+6
source share
1 answer

If you simply drag the button from the toolbar, it will set MinWidth and MinHeight for you. You need to change these properties.

<Button MinWidth="25" MinHeight="50" /> 

enter image description here

+14
source

Source: https://habr.com/ru/post/977232/


All Articles