public override void Build() { _contextMenu.Section1.Add(new ContextCommand <FileExplorerViewModel> { Header = Tx.T("FileExplorer:Refresh"), Icon = _visualStudioIcons.Refresh, Command = new DelegateCommand <FileExplorerViewModel>(RefreshDirectory) }); _contextMenu.Section2.Add(new ContextCommand <FileExplorerViewModel> { Header = Tx.T("FileExplorer:UploadFile"), Icon = _visualStudioIcons.UploadFile, Command = new DelegateCommand <FileExplorerViewModel>(UploadFile) }); //_contextMenu.Section2.Add(new ContextCommand<FileExplorerViewModel> //{ // Header = Tx.T("FileExplorer:DownloadFileToDirectory"), // Icon = _visualStudioIcons.DownloadFile, // Command = new DelegateCommand<FileExplorerViewModel>(DownloadFile) //}); _contextMenu.Section3New.Header = Tx.T("FileExplorer:New"); _contextMenu.Section3New.Add(new ContextCommand <FileExplorerViewModel> { Header = Tx.T("FileExplorer:Directory"), Icon = new Image { Source = _imageProvider.GetFolderImage(null, 0), Width = 18, Height = 18, Stretch = Stretch.UniformToFill }, Command = new DelegateCommand <FileExplorerViewModel>(CreateDirectory) }); }