Exemple #1
0
        private void OpenPlaylistFlyout(object sender, object e)
        {
            var flyout = sender as MenuFlyout;

            MenuFlyoutHelper.SetPlaylistMenu(sender, this, null, new MenuFlyoutOption
            {
                MultiSelectOption = new MultiSelectCommandBarOption
                {
                    ShowRemove           = false,
                    ShowReverseSelection = false
                }
            });
            FolderTree tree = null;

            if (flyout.Target.DataContext is GridFolderView gridFolderView)
            {
                tree = gridFolderView.Tree;
            }
            else if (flyout.Target.DataContext is TreeViewNode node)
            {
                tree = node.Content as FolderTree;
            }
            flyout.Items.Add(MenuFlyoutHelper.GetShowInExplorerItem(tree.Path, Windows.Storage.StorageItemTypes.Folder));
            flyout.Items.Add(MenuFlyoutHelper.GetRefreshDirectoryItem(tree, AfterTreeUpdated));
            flyout.Items.Add(MenuFlyoutHelper.GetSearchDirectoryItem(tree));
        }
Exemple #2
0
 private void MenuFlyout_Opening(object sender, object e)
 {
     MenuFlyoutHelper.SetPlaylistMenu(sender);
     MenuFlyoutOpeningAction?.Invoke(sender, e);
 }
Exemple #3
0
 private void MenuFlyout_Opening(object sender, object e)
 {
     MenuFlyoutHelper.SetPlaylistMenu(sender);
 }