Skip to content

Commit

Permalink
Move style
Browse files Browse the repository at this point in the history
  • Loading branch information
jsidewhite committed Apr 15, 2024
1 parent c40f293 commit b39e3e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit b39e3e9

Please sign in to comment.