Skip to content

Commit 297974e

Browse files
authored
Update dialog theme in ScratchPad page to match current app theme (#2028)
1 parent 55fa955 commit 297974e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WinUIGallery/Samples/ControlPages/Fundamentals/ScratchPadPage.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ private async void ResetToDefaultClick(object sender, RoutedEventArgs e)
118118
dialog.PrimaryButtonText = "Reset";
119119
dialog.CloseButtonText = "Cancel";
120120
dialog.DefaultButton = ContentDialogButton.Primary;
121+
dialog.RequestedTheme = this.ActualTheme;
121122

122123
var result = await dialog.ShowAsync();
123124
if (result == ContentDialogResult.Primary)

0 commit comments

Comments
 (0)