1
- using Files . Controls ;
2
- using Files . Filesystem ;
1
+ using Files . Filesystem ;
3
2
using Files . Interacts ;
4
3
using System ;
5
- using System . Collections . Generic ;
6
4
using System . Collections . ObjectModel ;
7
5
using System . ComponentModel ;
8
- using System . IO ;
9
- using System . Linq ;
10
6
using System . Runtime . CompilerServices ;
11
- using System . Runtime . InteropServices . WindowsRuntime ;
12
- using Windows . Foundation ;
13
- using Windows . Foundation . Collections ;
14
7
using Windows . Storage ;
15
8
using Windows . System ;
16
- using Windows . UI . Popups ;
17
9
using Windows . UI . Xaml ;
18
10
using Windows . UI . Xaml . Controls ;
19
- using Windows . UI . Xaml . Controls . Primitives ;
20
- using Windows . UI . Xaml . Data ;
21
11
using Windows . UI . Xaml . Input ;
22
- using Windows . UI . Xaml . Media ;
23
12
using Windows . UI . Xaml . Media . Animation ;
24
- using Windows . UI . Xaml . Navigation ;
25
13
26
14
27
15
namespace Files . UserControls
28
16
{
29
17
public sealed partial class ModernNavigationToolbar : UserControl , INavigationToolbar , INotifyPropertyChanged
30
18
{
19
+ public ModernNavigationToolbar ( )
20
+ {
21
+ this . InitializeComponent ( ) ;
22
+ }
23
+
31
24
private bool manualEntryBoxLoaded = false ;
32
25
private bool ManualEntryBoxLoaded
33
26
{
@@ -44,7 +37,6 @@ private bool ManualEntryBoxLoaded
44
37
}
45
38
}
46
39
}
47
-
48
40
private bool clickablePathLoaded = true ;
49
41
private bool ClickablePathLoaded
50
42
{
@@ -61,15 +53,8 @@ private bool ClickablePathLoaded
61
53
}
62
54
}
63
55
}
64
-
65
56
private bool SearchBoxLoaded { get ; set ; } = false ;
66
57
private string PathText { get ; set ; }
67
-
68
- public ModernNavigationToolbar ( )
69
- {
70
- this . InitializeComponent ( ) ;
71
- }
72
-
73
58
bool INavigationToolbar . IsSearchReigonVisible
74
59
{
75
60
get
@@ -169,6 +154,7 @@ string INavigationToolbar.PathControlDisplayText
169
154
NotifyPropertyChanged ( "PathText" ) ;
170
155
}
171
156
}
157
+
172
158
private ObservableCollection < PathBoxItem > pathComponents = new ObservableCollection < PathBoxItem > ( ) ;
173
159
174
160
public event PropertyChangedEventHandler PropertyChanged ;
@@ -271,10 +257,8 @@ public async void CheckPathInput(ItemViewModel instance, string CurrentInput)
271
257
} ;
272
258
273
259
await dialog . ShowAsync ( ) ;
274
-
275
260
}
276
261
}
277
-
278
262
}
279
263
280
264
App . CurrentInstance . NavigationToolbar . PathControlDisplayText = App . CurrentInstance . ViewModel . Universal . WorkingDirectory ;
0 commit comments