Methods
Example
1 2 3 4 5 6 7 8 9 10
| ContentDialog dialog = new() { Title = "Title", Content = "Content", PrimaryButtonText = "Primary", SecondaryButtonText = "Secondary", CloseButtonText = "Close" };
await dialog.ShowAsWindowAsync();
|

Demo
you can run demo and see this feature.