diff --git a/SudokuSolver/Views/MainWindow.cs b/SudokuSolver/Views/MainWindow.cs index aa9d8c5..0b68a8f 100644 --- a/SudokuSolver/Views/MainWindow.cs +++ b/SudokuSolver/Views/MainWindow.cs @@ -329,8 +329,6 @@ private double IntialiseScaleFactor() return dpi / 96.0; } - public double GetScaleFactor() => scaleFactor; - private void ClearWindowDragRegions() { // Guard against race hazards. If a tab is selected using right click a size changed event is generated diff --git a/SudokuSolver/Views/MainWindow.xaml.cs b/SudokuSolver/Views/MainWindow.xaml.cs index d9166f9..b1963fe 100644 --- a/SudokuSolver/Views/MainWindow.xaml.cs +++ b/SudokuSolver/Views/MainWindow.xaml.cs @@ -23,7 +23,7 @@ public MainWindow(WindowState windowState, RectInt32 bounds) : this() if (AppWindowTitleBar.IsCustomizationSupported()) { ExtendsContentIntoTitleBar = true; - RightPaddingColumn.MinWidth = AppWindow.TitleBar.RightInset / GetScaleFactor(); + RightPaddingColumn.MinWidth = AppWindow.TitleBar.RightInset / scaleFactor; UpdateCaptionButtonsTheme(LayoutRoot.ActualTheme);