ContextMenu on tap instead of tap and hold

前端 未结 2 2010
星月不相逢
星月不相逢 2020-12-16 00:43

I need to open up a menu and since WP7 is not designed to perform such actions, I am taking help of Toolkit. Following is the sample code:



        
2条回答
  •  情歌与酒
    2020-12-16 01:14

    If you want a context menu for your application, then the ContextMenu and ContextMenuService are the best approach to take because it is standard throughout third party and pre-installed applications. Users already understand the 'tap-and-hold' gesture, so working around that will be counter-intuitive.

    If (for whatever reason) you must initiate a ContextMenu from a single tap, then you can always customize the source code for ContextMenu.cs from the Silverlight Toolkit so that instead of hooking the Hold event it hooks the Tap event.

提交回复
热议问题