mirror of
https://github.com/PacktPublishing/Learn-WinUI-3-Second-Edition.git
synced 2026-06-20 12:23:09 +00:00
Simplify contentdialog code
This commit is contained in:
@@ -120,9 +120,9 @@ namespace MyMediaCollection
|
|||||||
{
|
{
|
||||||
Title = "My Media Collection",
|
Title = "My Media Collection",
|
||||||
Content = "Adding items to the collection is not yet supported.",
|
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();
|
await dialog.ShowAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user