Skip to content

Commit 3f6f92a

Browse files
author
Yair Aichenbaum
committed
Cleaned up ModernNavigationToolbar
1 parent 3e800f0 commit 3f6f92a

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

Files/UserControls/NavigationToolbar/ModernNavigationToolbar.xaml.cs

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
1-
using Files.Controls;
2-
using Files.Filesystem;
1+
using Files.Filesystem;
32
using Files.Interacts;
43
using System;
5-
using System.Collections.Generic;
64
using System.Collections.ObjectModel;
75
using System.ComponentModel;
8-
using System.IO;
9-
using System.Linq;
106
using System.Runtime.CompilerServices;
11-
using System.Runtime.InteropServices.WindowsRuntime;
12-
using Windows.Foundation;
13-
using Windows.Foundation.Collections;
147
using Windows.Storage;
158
using Windows.System;
16-
using Windows.UI.Popups;
179
using Windows.UI.Xaml;
1810
using Windows.UI.Xaml.Controls;
19-
using Windows.UI.Xaml.Controls.Primitives;
20-
using Windows.UI.Xaml.Data;
2111
using Windows.UI.Xaml.Input;
22-
using Windows.UI.Xaml.Media;
2312
using Windows.UI.Xaml.Media.Animation;
24-
using Windows.UI.Xaml.Navigation;
2513

2614

2715
namespace Files.UserControls
2816
{
2917
public sealed partial class ModernNavigationToolbar : UserControl, INavigationToolbar, INotifyPropertyChanged
3018
{
19+
public ModernNavigationToolbar()
20+
{
21+
this.InitializeComponent();
22+
}
23+
3124
private bool manualEntryBoxLoaded = false;
3225
private bool ManualEntryBoxLoaded
3326
{
@@ -44,7 +37,6 @@ private bool ManualEntryBoxLoaded
4437
}
4538
}
4639
}
47-
4840
private bool clickablePathLoaded = true;
4941
private bool ClickablePathLoaded
5042
{
@@ -61,15 +53,8 @@ private bool ClickablePathLoaded
6153
}
6254
}
6355
}
64-
6556
private bool SearchBoxLoaded { get; set; } = false;
6657
private string PathText { get; set; }
67-
68-
public ModernNavigationToolbar()
69-
{
70-
this.InitializeComponent();
71-
}
72-
7358
bool INavigationToolbar.IsSearchReigonVisible
7459
{
7560
get
@@ -169,6 +154,7 @@ string INavigationToolbar.PathControlDisplayText
169154
NotifyPropertyChanged("PathText");
170155
}
171156
}
157+
172158
private ObservableCollection<PathBoxItem> pathComponents = new ObservableCollection<PathBoxItem>();
173159

174160
public event PropertyChangedEventHandler PropertyChanged;
@@ -271,10 +257,8 @@ public async void CheckPathInput(ItemViewModel instance, string CurrentInput)
271257
};
272258

273259
await dialog.ShowAsync();
274-
275260
}
276261
}
277-
278262
}
279263

280264
App.CurrentInstance.NavigationToolbar.PathControlDisplayText = App.CurrentInstance.ViewModel.Universal.WorkingDirectory;

0 commit comments

Comments
 (0)