Reputation: 35
today i meet a new problem with Bing Map on Metro, holding event doesn't work for mouse but when i change it to touch mode it works fine. Help me please!!!
<Bing:Map x:Name="bingMap" Credentials="{StaticResource BingCredentials}" HorizontalAlignment="Left"
Width="700" Height="600" IsHoldingEnabled="True" Holding="Bing_Holding" />
private async void Bing_Holding(object sender, HoldingRoutedEventArgs e){
try
{
await new MessageDialog("I'm superman!").ShowAsync();
}
catch{}
}
Upvotes: 1
Views: 333
Reputation: 606
I just made some research about your question and find this.
It explain that the Holding event can't work with mouse generally. There are a few tips too that explain wwhy this event don't work and with why you should replace it.
I recommend you to read this link too. Its a quickstart guide for the Touch Input.
Hope it can help you.
Upvotes: 1