Reputation: 537
When I add a button control to blend I end up with the picture below. The layout of the button it's much bigger than it's border, but I can actually click the button if it's in the layout, even if the border is smaller.
That can really mess up the UX, because user can press button even if he shouldn't. How can I fix this and make layout = border ?
I use Visual Studio 2012 and building windows phone 8 store C# project.
Upvotes: 0
Views: 111
Reputation: 12019
This is because of the additional touch-target overhang added to the control. It appears that you have placed a RenderTransform
on the button which makes the overhang unnecessary. The easiest thing to do is:
ButtonBackground
with a Margin
of 12 (it will be highlighted green in the properties window, since it is bound to a resourceMargin
in the properties window and choose ResetUpvotes: 2