Provides a view model for setup and configuration of RadOpenFolderDialog.
Definition
Namespace:Telerik.WinControls.FileDialogs
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class OpenFolderDialogViewModel : DialogViewModel, INotifyPropertyChanged, IDisposable, IDialogViewModel, ICurrentDirectoryViewModel, INotifyPropertyChanging, IMultiSelectable
Inheritance: objectViewModelBaseDialogViewModelOpenFolderDialogViewModel
Implements:
Inherited Members
Constructors
Initializes a new instance of the OpenFolderDialogViewModel class.
public OpenFolderDialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")
The factory used from this OpenFolderDialogViewModel for creation of file system wrappers.
showNetworkboolBoolean indicating whether network locations are shown.
rootDirPathstringThe path of the initial directory.
Properties
Gets or sets a value indicating whether multiple selection of files or folders is allowed.
public bool MultiSelect { get; set; }
Implements:
Gets a collection of selected FileSystemInfoWrappers.
public ObservableCollection<FileSystemInfoWrapper> SelectedFileSystemInfoWrappers { get; }
Implements:
Methods
Defines the method that determines whether the accept command can execute in its current state.
Gets the current visible FileSystemInfoWrappers.
protected override IEnumerable<FileSystemInfoWrapper> GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper parent)
IEnumerable<FileSystemInfoWrapper>
Overrides:
Execute logic when accept is executed for the selected FileSystemInfoWrappers.
protected override void InvokeSelectedFileSystemObjects()
Overrides:
Raises this object's PropertyChanged event.
protected override void OnPropertyChanged(string propertyName)
The property that has a new value.
Overrides:
protected override void OnPropertyChanging(string propertyName)
Overrides:
Resets the selection.
protected override void ResetSelection()
Overrides: