public void ShowSongDetailToast() { //Task.Run(() => //{ string toastXmlString = null; try { string toastVisual = $@"<visual> <binding template='ToastGeneric'> {ToastHelper.CreateTitleText(_config, false)} {ToastHelper.CreateContentText(_config)} {ToastHelper.CreateRatingText(_config)} {ToastHelper.CreateToastFooter(_config)} {ToastHelper.CreateProgressBar(_config)} {ToastHelper.CreateImage(_config, true)} </binding> </visual>"; string toastActions = $@"<actions> {ToastHelper.RatingInputAction(_config)} {ToastHelper.OpenInBrowserAction(_config)} </actions>"; // Create toast xml text toastXmlString = $@"<toast launch='{nameof(this.ShowSongDetailToast)}'> {toastVisual} {ToastHelper.toastAudio} {toastActions} </toast>"; } catch (Exception ex) { _log.Error(LogHelper.GetMethodName(this), ex); } DisplayToast(toastXmlString, HandleToastActivatedEvent); //}); }