Nik A.
Nik A.

Reputation: 474

Why can't I make my button's width smaller?

I'm working on universal app. When I'm designing the view for Windows Phone 8.1 project, I can't make any button's width smaller than 109. If I set the button's width property to smaller than that, it becomes 109 when rendered.

I would like to know how to force the button to be smaller than that, and why does this limitation exists in the first place.

Thanks a lot for helping!

Upvotes: 6

Views: 2375

Answers (1)

Chubosaurus Software
Chubosaurus Software

Reputation: 8161

If you are just dragging the button from the Toolbox, it will set a MinWidth and MinHeight for you. You need to change these properties.

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

enter image description here

Upvotes: 14

Related Questions