Sunday, September 29, 2013

How to used the PickerClosingOperation.GetDeferral | getDeferral method

Hi,


How to used the PickerClosingOperation.GetDeferral | getDeferral method?


In my app, I called follow codes,



async void fileOpenPickerUI_Closing(Windows.Storage.Pickers.Provider.FileOpenPickerUI sender, Windows.Storage.Pickers.Provider.PickerClosingEventArgs args)
{
var defer = args.ClosingOperation.GetDeferral();
storage file = await SaveToFileAsync("aaaa", filePath);
defer.Complete();
}

but it doesnot work well, it's not async? how can I do it?


Thank you!




自强不息,知行合一。


No comments:

Post a Comment