windows phone 7 - WP7: Button Tap event does not fire each time -
i having issue button (having image background) not fire tap event each time tap on screen (sometimes fires every time, once in 3-4 times tap button on screen). project targeted wp7.1.
button defined in xaml as:
<button x:name="menu" tap="menu_tap" height="70" width="70" margin="0,0,0,0" horizontalalignment="center" padding="0" verticalalignment="center" style="{staticresource menuimagebuttonstyle}"></button> style define menu background image:
<style x:key="menuimagebuttonstyle" targettype="button"> <setter property="template"> <setter.value> <controltemplate targettype="button"> <grid> <image x:name="startbuttonimage" source="/images/menu_button.png" height="33" width="33" /> <contentpresenter horizontalalignment="{templatebinding horizontalcontentalignment}" verticalalignment="{templatebinding verticalcontentalignment}" content=""/> </grid> </controltemplate> </setter.value> </setter> </style> note i've experimented using tap, click , manipulationstarted events, no luck, events fire erratically. quite sure issue not tapping precision, make sure tap @ center of button. i've tested on nokia lumia 800.
entire project code available here: http://notecase.sourceforge.net/temp/wp7issue.zip
any idea, why so? tip fix this?
Comments
Post a Comment