private void TreeView_ItemInvoked(TreeView sender, TreeViewItemInvokedEventArgs args)
        {
            FileViewItem item = library.Invoked((TreeViewNode)args.InvokedItem);

            FileName.Text = item.Name;
            FilePath.Text = item.Path;
        }
        public FileViewItem Invoked(TreeViewNode node)
        {
            FileViewItem item = null;

            if (node.Content is IStorageItem storageItem)
            {
                item = new FileViewItem()
                {
                    Name = storageItem.Name,
                    Path = storageItem.Path
                };
                if (node.Content is StorageFolder)
                {
                    node.IsExpanded = !node.IsExpanded;
                }
            }
            return(item);
        }