简体   繁体   English

Windows Phone按钮按下效果

[英]Windows Phone Button Press Effect

I'm Building a very basic game for windows phone based on one I created for iOS. 我正在根据我为iOS创建的一款游戏,为Windows Phone开发一款非常基本的游戏。 In iOS there is a event for when the screen is pressed. 在iOS中,有一个事件发生在按下屏幕时。 I have looked and cannot find a equivalent in windows phone so have decided to use a large button placed over the entire of the view however i have the issue that when i press the button it fills out in the accent colour. 我已经看过并且找不到Windows Phone中的等效按钮,所以决定使用放置在整个视图上的大按钮,但是我遇到的问题是,当我按下按钮时,它会以强调色填充。 i have tried changing the clickmode .ect to solve this as suggested in some older posts for windows phone 7 however none of these seem to be working. 我曾尝试更改clickmode .ect以解决Windows Phone 7的一些旧帖子中所建议的问题,但是这些似乎都没有用。 Any help is appreciated Thanks 任何帮助表示赞赏,谢谢

Found a better solution for my requirements. 为我的需求找到了更好的解决方案。 Realised that if on the root of the application page i can set a Tap event to fire code so his works like touchesBegan on iOS 意识到,如果在应用程序页面的根目录上,我可以将Tap事件设置为触发代码,以便他的工作类似于iOS上的touchesBegan

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM