So I’m just doing tests to my project, and realized that if you have a link (for example navigation service), it takes both taps and double taps. This means if I have a button that goes to another page within the app, unless I don’t handle the double tap, the app will crash.
So if I have this:
<toolkit:HubTile Name="XXX"
Message="XXXYYY" Source="ZZZ"
Title="XYZ" Tap="XYZ_Tap"/>
If anyone double taps this tile, the app will crash. So instead I have to add the
DoubleTap="XYZ_DoubleTap"
property. But this can get both tiring and seems unnecessary. So is there a way to handle ALL double taps globally? Then if I want to actually implement it somewhere, just override it? Thanks 🙂
Edit: The “Global” event handler for DoubleTap is simple to do nothing. This way I don’t have to rewrite it for each link or button. And an exception won’t be thrown each time an none handled DoubleTap is called.
You should create a custom Control that inherits from
HubTileand set theDoubleTapevent to do nothing in that class.