New to Telerik UI for WinFormsStart a free 30-day trial

Provides a view model for setup and configuration of RadOpenFolderDialog.

Definition

Namespace:Telerik.WinControls.FileDialogs

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class OpenFolderDialogViewModel : DialogViewModel, INotifyPropertyChanged, IDisposable, IDialogViewModel, ICurrentDirectoryViewModel, INotifyPropertyChanging, IMultiSelectable

Inheritance: objectViewModelBaseDialogViewModelOpenFolderDialogViewModel

Implements: ICurrentDirectoryViewModelIDialogViewModelIDisposableIMultiSelectableINotifyPropertyChangedINotifyPropertyChanging...

Inherited Members DialogViewModel.Dispose(bool)DialogViewModel.OnCurrentSearchResultsChanged()DialogViewModel.CreateNewChildFolder()DialogViewModel.CanEditExecute()DialogViewModel.OnEditExecuted()DialogViewModel.CanNewFolderExecute()DialogViewModel.OnNewFolderExecuted()DialogViewModel.CanCopyExecute()DialogViewModel.OnCopyCommand(IntPtr)DialogViewModel.CanCutExecute()DialogViewModel.OnCutCommand(IntPtr)DialogViewModel.CanPasteExecute()DialogViewModel.OnPasteCommand(IntPtr)DialogViewModel.CanDeleteExecute()DialogViewModel.OnDeleteCommand(IntPtr)DialogViewModel.CanExecuteHelper()DialogViewModel.PrepareCommandAndExecute(IntPtr, ShellContextMenuCommand)DialogViewModel.OnSelectionChanged()DialogViewModel.ShouldCancelDiretoryNavigating(string)DialogViewModel.InvokeContextDialogViewModel.MainNavigationRootDialogViewModel.MainNavigationRootSourceDialogViewModel.EditingOptionsDialogViewModel.PathDialogViewModel.NameDialogViewModel.ShowHiddenFilesDialogViewModel.InitialDirectoryDialogViewModel.CurrentParentDirectoryDialogViewModel.SelectedFileSystemObjectDialogViewModel.CurrentFileSystemObjectsDialogViewModel.RootAndCurrentFileSystemObjectsDialogViewModel.IsDirectorySelectedDialogViewModel.CustomPlacesDialogViewModel.SelectedLayoutDialogViewModel.LayoutsDialogViewModel.IsMainPaneLoadingNetworkDialogViewModel.SelectedFilesInvokerDialogViewModel.FileSystemInfoWrapperFactoryDialogViewModel.CurrentSearchResultsDialogViewModel.IsSearchViewActiveDialogViewModel.DirectoryNavigatingDialogViewModel.PropertyChangingViewModelBase.Dispose()ViewModelBase.InvokeOnUIThread(Action)ViewModelBase.VerifyPropertyName(string)ViewModelBase.PropertyChanged...

Constructors

Initializes a new instance of the OpenFolderDialogViewModel class.

C#
public OpenFolderDialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")
Parameters:fileSystemInfoWrapperFactoryFileSystemInfoWrapperFactoryBase

The factory used from this OpenFolderDialogViewModel for creation of file system wrappers.

showNetworkbool

Boolean indicating whether network locations are shown.

rootDirPathstring

The path of the initial directory.

Properties

Gets or sets a value indicating whether multiple selection of files or folders is allowed.

C#
public bool MultiSelect { get; set; }

Implements: IMultiSelectable.MultiSelect

Gets a collection of selected FileSystemInfoWrappers.

C#
public ObservableCollection<FileSystemInfoWrapper> SelectedFileSystemInfoWrappers { get; }

Implements: IMultiSelectable.SelectedFileSystemInfoWrappers

Methods

Defines the method that determines whether the accept command can execute in its current state.

C#
protected override bool CanExecuteAccept()
Returns:

bool

Overrides: DialogViewModel.CanExecuteAccept()

Gets the current visible FileSystemInfoWrappers.

C#
protected override IEnumerable<FileSystemInfoWrapper> GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper parent)
Parameters:parentDirectoryBaseWrapperReturns:

IEnumerable<FileSystemInfoWrapper>

Overrides: DialogViewModel.GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper)

Execute logic when accept is executed for the selected FileSystemInfoWrappers.

C#
protected override void InvokeSelectedFileSystemObjects()

Overrides: DialogViewModel.InvokeSelectedFileSystemObjects()

Raises this object's PropertyChanged event.

C#
protected override void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

The property that has a new value.

Overrides: ViewModelBase.OnPropertyChanged(string)

C#
protected override void OnPropertyChanging(string propertyName)
Parameters:propertyNamestring

Overrides: DialogViewModel.OnPropertyChanging(string)

Resets the selection.

C#
protected override void ResetSelection()

Overrides: DialogViewModel.ResetSelection()