Simplify contentdialog code

This commit is contained in:
Alvin Ashcraft
2023-05-06 14:34:24 -04:00
parent c266f9579c
commit 059a82b6a5
@@ -120,9 +120,9 @@ namespace MyMediaCollection
{
Title = "My Media Collection",
Content = "Adding items to the collection is not yet supported.",
CloseButtonText = "OK"
CloseButtonText = "OK",
XamlRoot = Content.XamlRoot
};
dialog.XamlRoot = this.Content.XamlRoot;
await dialog.ShowAsync();
}
}