dotMorten/WinUIEx

Pass theme to the ShowMessageDialogAsync?

nodew opened this issue · 0 comments

nodew commented

Currently, to set the theme of ContentDialog, we need to manually set the theme by

var dialog = new ContentDialog() { XamlRoot = Content.XamlRoot };
...
dialog.RequestedTheme = Light/Dark/Default;
...

So, we need an extra overload of the method ShowMessageDialogAsync method, with an optional parameter theme, the default value of which is ElementTheme.Default.