Skip to content

Commit ad8dfc3

Browse files
committed
Update
1 parent 1cff7a8 commit ad8dfc3

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/Files.App/UserControls/NavigationToolbar.xaml.cs

+13-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
// Licensed under the MIT License.
33

44
using CommunityToolkit.WinUI;
5+
using Files.App.Controls;
56
using Microsoft.UI.Input;
67
using Microsoft.UI.Xaml;
78
using Microsoft.UI.Xaml.Controls;
89
using Microsoft.UI.Xaml.Controls.Primitives;
910
using Microsoft.UI.Xaml.Input;
1011
using Microsoft.UI.Xaml.Media;
1112
using Microsoft.UI.Xaml.Navigation;
12-
using System.Windows.Input;
1313
using Windows.System;
1414

1515
namespace Files.App.UserControls
@@ -270,11 +270,22 @@ private async void BreadcrumbBar_ItemClicked(Controls.BreadcrumbBar sender, Cont
270270
await ViewModel.HandleBreadcrumbBarItemClicked(ViewModel.PathComponents[args.Index].Path);
271271
}
272272

273-
private async void BreadcrumbBar_ItemDropDownFlyoutOpening(object sender, Controls.BreadcrumbBarItemDropDownFlyoutEventArgs e)
273+
private async void BreadcrumbBar_ItemDropDownFlyoutOpening(object sender, BreadcrumbBarItemDropDownFlyoutEventArgs e)
274274
{
275275
if (e.IsRootItem)
276276
{
277277
// TODO: Populate a different flyout for the root item
278+
e.Flyout.Items.Add(new MenuFlyoutHeaderItem() { Text = "Quick access" });
279+
e.Flyout.Items.Add(new MenuFlyoutItem() { Text = "Desktop" });
280+
e.Flyout.Items.Add(new MenuFlyoutItem() { Text = "Download" });
281+
e.Flyout.Items.Add(new MenuFlyoutItem() { Text = "Documents" });
282+
e.Flyout.Items.Add(new MenuFlyoutItem() { Text = "Pictures" });
283+
e.Flyout.Items.Add(new MenuFlyoutItem() { Text = "Music" });
284+
e.Flyout.Items.Add(new MenuFlyoutItem() { Text = "Videos" });
285+
e.Flyout.Items.Add(new MenuFlyoutItem() { Text = "Recycle bin" });
286+
e.Flyout.Items.Add(new MenuFlyoutHeaderItem() { Text = "Drives" });
287+
e.Flyout.Items.Add(new MenuFlyoutItem() { Text = "Local Disk (C:)" });
288+
e.Flyout.Items.Add(new MenuFlyoutItem() { Text = "Local Disk (D:)" });
278289
return;
279290
}
280291

0 commit comments

Comments
 (0)