Search code examples
wpfuser-interfacewindows-phone-8touchexpression-blend

How can I define a larger touch target in Windows Phone?


I'm working on Windows Phone 8 app and I have a very small (25x5) Image which is bound to a Tap event. I'm afraid the user might have trouble pressing this small button and would like to increase the effective touch target, however nowhere in the API nor in Blend can I find this setting.

How to I make the touch target larger than the image itself?


Solution

  • You could try overlaying a Rectangle control over it, then making the Rectangle transparent in color. After that, all you have to do is to give it an action method.