diff --git a/tools/QuietBackgroundProcesses/DevHome.QuietBackgroundProcesses.UI/Views/AnalyticSummaryPopup.xaml.cs b/tools/QuietBackgroundProcesses/DevHome.QuietBackgroundProcesses.UI/Views/AnalyticSummaryPopup.xaml.cs index dc4cc66c0c..9e2fff294d 100644 --- a/tools/QuietBackgroundProcesses/DevHome.QuietBackgroundProcesses.UI/Views/AnalyticSummaryPopup.xaml.cs +++ b/tools/QuietBackgroundProcesses/DevHome.QuietBackgroundProcesses.UI/Views/AnalyticSummaryPopup.xaml.cs @@ -26,6 +26,8 @@ public AnalyticSummaryPopup(QuietBackgroundProcesses.ProcessPerformanceTable? pe ViewModel = new AnalyticSummaryPopupViewModel(performanceTable); + this.Style = Application.Current.Resources["DefaultContentDialogStyle"] as Style; + this.DefaultButton = ContentDialogButton.Primary; this.InitializeComponent(); } diff --git a/tools/QuietBackgroundProcesses/DevHome.QuietBackgroundProcesses.UI/Views/QuietBackgroundProcessesView.xaml.cs b/tools/QuietBackgroundProcesses/DevHome.QuietBackgroundProcesses.UI/Views/QuietBackgroundProcessesView.xaml.cs index 436193bc55..6098ab14bf 100644 --- a/tools/QuietBackgroundProcesses/DevHome.QuietBackgroundProcesses.UI/Views/QuietBackgroundProcessesView.xaml.cs +++ b/tools/QuietBackgroundProcesses/DevHome.QuietBackgroundProcesses.UI/Views/QuietBackgroundProcessesView.xaml.cs @@ -28,8 +28,6 @@ private async void ShowAnalyticSummaryButton_Click(object sender, Microsoft.UI.X var analyticSummaryPopup = new AnalyticSummaryPopup(ViewModel.GetProcessPerformanceTable()); analyticSummaryPopup.XamlRoot = this.Content.XamlRoot; analyticSummaryPopup.RequestedTheme = this.ActualTheme; - analyticSummaryPopup.Style = Application.Current.Resources["DefaultContentDialogStyle"] as Style; - analyticSummaryPopup.DefaultButton = ContentDialogButton.Primary; await analyticSummaryPopup.ShowAsync(); } }