@@ -14,6 +14,8 @@ namespace Files.App.Views
14
14
{
15
15
public sealed partial class PaneHolderPage : Page , IPaneHolder , ITabItemContent
16
16
{
17
+ public static readonly int DualPaneWidthThreshold = 750 ;
18
+
17
19
public static event EventHandler < PaneHolderPage > ? CurrentInstanceChanged ;
18
20
19
21
private IUserSettingsService UserSettingsService { get ; }
@@ -46,7 +48,7 @@ public TabItemArguments TabItemArguments
46
48
}
47
49
}
48
50
49
- private bool _WindowIsCompact = MainWindow . Instance . Bounds . Width <= 750 ;
51
+ private bool _WindowIsCompact = MainWindow . Instance . Bounds . Width <= DualPaneWidthThreshold ;
50
52
public bool WindowIsCompact
51
53
{
52
54
get => _WindowIsCompact ;
@@ -78,7 +80,7 @@ public bool IsMultiPaneActive
78
80
=> IsRightPaneVisible ;
79
81
80
82
public bool IsMultiPaneEnabled
81
- => ! ( MainWindow . Instance . Bounds . Width <= 750 ) ;
83
+ => MainWindow . Instance . Bounds . Width > DualPaneWidthThreshold ;
82
84
83
85
private NavigationParams _NavParamsLeft ;
84
86
public NavigationParams NavParamsLeft
@@ -208,7 +210,7 @@ public PaneHolderPage()
208
210
209
211
private void Current_SizeChanged ( object sender , WindowSizeChangedEventArgs e )
210
212
{
211
- WindowIsCompact = MainWindow . Instance . Bounds . Width <= 750 ;
213
+ WindowIsCompact = MainWindow . Instance . Bounds . Width <= DualPaneWidthThreshold ;
212
214
}
213
215
214
216
protected override void OnNavigatedTo ( NavigationEventArgs eventArgs )
0 commit comments