internal static async void DisplayInfoDialog(string title, string content) { ContentDialog infoDialog = new ContentDialog() { Title = title, Content = @content, CloseButtonText = "Ok", XamlRoot = Window.Current.Content.XamlRoot, }; await infoDialog.ShowAsync(); }
DisplayInfoDialog("Fail", "It fails because");
XamlRoot
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)