示例#1
0
 public FileExplorerViewModel(StorageFolder root, string id = null)
 {
     NavigateToCommand = new IStorageItemClickedCommand();
     GoBackCommand = new GoUpperFolderCommand();
     BackStack.Add(root);
     Name = root.DisplayName;
     if (id != null)
         Id = id;
 }
 public FileExplorerViewModel(StorageFolder root, string id = null)
 {
     NavigateToCommand = new IStorageItemClickedCommand();
     GoBackCommand     = new GoUpperFolderCommand();
     BackStack.Add(root);
     Name = root.DisplayName;
     if (id != null)
     {
         Id = id;
     }
 }