async Task PerformPaste() { if (SelectedAction != null) { await SelectedAction.PerformAsync(SelectedElement.Data); } }
async void Service_UserInterfaceHidden(object sender, UserInterfaceHiddenEventArgument e) { if (UserInterfaceHidden != null) { UserInterfaceHidden(this, e); } if (SelectedAction != null) { await SelectedAction.PerformAsync(SelectedElement); } }