|
2 | 2 | // Licensed under the MIT License.
|
3 | 3 |
|
4 | 4 | using CommunityToolkit.WinUI;
|
| 5 | +using Files.App.Controls; |
5 | 6 | using Microsoft.UI.Input;
|
6 | 7 | using Microsoft.UI.Xaml;
|
7 | 8 | using Microsoft.UI.Xaml.Controls;
|
8 | 9 | using Microsoft.UI.Xaml.Controls.Primitives;
|
9 | 10 | using Microsoft.UI.Xaml.Input;
|
10 | 11 | using Microsoft.UI.Xaml.Media;
|
11 | 12 | using Microsoft.UI.Xaml.Navigation;
|
12 |
| -using System.Windows.Input; |
13 | 13 | using Windows.System;
|
14 | 14 |
|
15 | 15 | namespace Files.App.UserControls
|
@@ -270,11 +270,22 @@ private async void BreadcrumbBar_ItemClicked(Controls.BreadcrumbBar sender, Cont
|
270 | 270 | await ViewModel.HandleBreadcrumbBarItemClicked(ViewModel.PathComponents[args.Index].Path);
|
271 | 271 | }
|
272 | 272 |
|
273 |
| - private async void BreadcrumbBar_ItemDropDownFlyoutOpening(object sender, Controls.BreadcrumbBarItemDropDownFlyoutEventArgs e) |
| 273 | + private async void BreadcrumbBar_ItemDropDownFlyoutOpening(object sender, BreadcrumbBarItemDropDownFlyoutEventArgs e) |
274 | 274 | {
|
275 | 275 | if (e.IsRootItem)
|
276 | 276 | {
|
277 | 277 | // 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:)" }); |
278 | 289 | return;
|
279 | 290 | }
|
280 | 291 |
|
|
0 commit comments