I am trying to add a handler to Tapped event and DoubleTapped event of an MediaElement, But every time I run the application and click the mouse, the app will crash. Can anyone give me some hints?
Below is my Codes:
Add event handler at Constructor of BlankPage:
OutPutVideo->Tapped += ref new Windows::UI::Xaml::Input::TappedEventHandler(this, &BlankPage::OnTapped);
Event Handler, Actually, I did nothing:
void VideoPlayer::BlankPage::OnTapped(Platform::Object^ sender, Windows::UI::Xaml::Input::TappedRoutedEventArgs^ e)
{
}
And also, I try to add the event handler at BlankPage.xaml, the behavior is same as above.
Thanks