我有一个MediaElement
控件Media.xaml
,我想像这样访问App.xaml.cs
它:
private void OnSuspending(object sender, SuspendingEventArgs e)
{
var deferral = e.SuspendingOperation.GetDeferral();
//Media.MediaElement.Pause();
deferral.Complete();
}
谁能告诉我该怎么做?