Skip to content

Commit df0e7df

Browse files
committed
Fix Shortcut ContentDialog Entrance Animation #105
1 parent f2bc8e4 commit df0e7df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dev/DevWinUI.Controls/Controls/Shortcut/Shortcut.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ private async void OpenDialog_Click(object sender, RoutedEventArgs e)
163163
DefaultButton = ContentDialogButton.Primary,
164164
RequestedTheme = this.ActualTheme
165165
};
166+
contentDialog.Style = Application.Current.Resources["DefaultContentDialogStyle"] as Style;
166167

167168
contentDialog.Closing += OnClosingContentDialog;
168169
contentDialog.PrimaryButtonClick += OnSaveContentDialog;
169170
contentDialog.SecondaryButtonClick += OnResetContentDialog;
170171
contentDialog.CloseButtonClick += OnCancelContentDialog;
171-
172172
await contentDialog.ShowAsyncQueue();
173173
}
174174

0 commit comments

Comments
 (0)