@@ -48,6 +48,7 @@ protected override void OnNavigatedTo(NavigationEventArgs eventArgs)
48
48
ProHome . RS . isEnabled = false ;
49
49
ProHome . accessiblePasteButton . IsEnabled = false ;
50
50
App . AlwaysPresentCommands . isEnabled = false ;
51
+ App . LayoutItems . isEnabled = false ;
51
52
}
52
53
53
54
private void CardPressed ( object sender , ItemClickEventArgs e )
@@ -59,34 +60,40 @@ private void CardPressed(object sender, ItemClickEventArgs e)
59
60
ProHome . locationsList . SelectedIndex = 2 ;
60
61
App . ViewModel . TextState . isVisible = Visibility . Collapsed ;
61
62
ProHome . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , DownloadsPath ) ;
63
+ App . LayoutItems . isEnabled = true ;
62
64
}
63
65
else if ( BelowCardText == "Documents" )
64
66
{
65
67
66
68
ProHome . locationsList . SelectedIndex = 3 ;
67
69
App . ViewModel . TextState . isVisible = Visibility . Collapsed ;
68
70
ProHome . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , DocumentsPath ) ;
71
+ App . LayoutItems . isEnabled = true ;
69
72
}
70
73
else if ( BelowCardText == "Pictures" )
71
74
{
72
75
73
76
ProHome . locationsList . SelectedIndex = 4 ;
74
77
App . ViewModel . TextState . isVisible = Visibility . Collapsed ;
75
78
ProHome . accessibleContentFrame . Navigate ( typeof ( PhotoAlbum ) , PicturesPath ) ;
79
+ App . LayoutItems . isEnabled = true ;
80
+
76
81
}
77
82
else if ( BelowCardText == "Music" )
78
83
{
79
84
80
85
ProHome . locationsList . SelectedIndex = 5 ;
81
86
App . ViewModel . TextState . isVisible = Visibility . Collapsed ;
82
87
ProHome . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , MusicPath ) ;
88
+ App . LayoutItems . isEnabled = true ;
83
89
}
84
90
else if ( BelowCardText == "Videos" )
85
91
{
86
92
87
93
ProHome . locationsList . SelectedIndex = 6 ;
88
94
App . ViewModel . TextState . isVisible = Visibility . Collapsed ;
89
95
ProHome . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , VideosPath ) ;
96
+ App . LayoutItems . isEnabled = true ;
90
97
}
91
98
}
92
99
@@ -109,34 +116,39 @@ private void Button_Tapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEven
109
116
ProHome . locationsList . SelectedIndex = 2 ;
110
117
App . ViewModel . TextState . isVisible = Visibility . Collapsed ;
111
118
ProHome . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , DownloadsPath ) ;
119
+ App . LayoutItems . isEnabled = true ;
112
120
}
113
121
else if ( clickedButton . Tag . ToString ( ) == "\xE8A5 " ) // Documents
114
122
{
115
123
116
124
ProHome . locationsList . SelectedIndex = 3 ;
117
125
App . ViewModel . TextState . isVisible = Visibility . Collapsed ;
118
126
ProHome . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , DocumentsPath ) ;
127
+ App . LayoutItems . isEnabled = true ;
119
128
}
120
129
else if ( clickedButton . Tag . ToString ( ) == "\xEB9F " ) // Pictures
121
130
{
122
131
123
132
ProHome . locationsList . SelectedIndex = 4 ;
124
133
App . ViewModel . TextState . isVisible = Visibility . Collapsed ;
125
134
ProHome . accessibleContentFrame . Navigate ( typeof ( PhotoAlbum ) , PicturesPath ) ;
135
+ App . LayoutItems . isEnabled = true ;
126
136
}
127
137
else if ( clickedButton . Tag . ToString ( ) == "\xEC4F " ) // Music
128
138
{
129
139
130
140
ProHome . locationsList . SelectedIndex = 5 ;
131
141
App . ViewModel . TextState . isVisible = Visibility . Collapsed ;
132
142
ProHome . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , MusicPath ) ;
143
+ App . LayoutItems . isEnabled = true ;
133
144
}
134
145
else if ( clickedButton . Tag . ToString ( ) == "\xE8B2 " ) // Videos
135
146
{
136
147
137
148
ProHome . locationsList . SelectedIndex = 6 ;
138
149
App . ViewModel . TextState . isVisible = Visibility . Collapsed ;
139
150
ProHome . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , VideosPath ) ;
151
+ App . LayoutItems . isEnabled = true ;
140
152
}
141
153
}
142
154
public static StorageFile RecentsFile ;
0 commit comments