ClassOpenFolderDialogViewModel
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
OpenFolderDialogViewModel(FileSystemInfoWrapperFactoryBase, bool, string)
Initializes a new instance of the OpenFolderDialogViewModel class.
Declaration
public OpenFolderDialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")
Parameters
fileSystemInfoWrapperFactory
FileSystemInfoWrapperFactoryBase
The factory used from this OpenFolderDialogViewModel for creation of file system wrappers.
showNetwork
Boolean indicating whether network locations are shown.
rootDirPath
The path of the initial directory.
Properties
MultiSelect
Gets or sets a value indicating whether multiple selection of files or folders is allowed.
SelectedFileSystemInfoWrappers
Gets a collection of selected FileSystemInfoWrappers.
Declaration
public ObservableCollection<FileSystemInfoWrapper> SelectedFileSystemInfoWrappers { get; }
Property Value
Implements
Methods
CanExecuteAccept()
Defines the method that determines whether the accept command can execute in its current state.
GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper)
Gets the current visible FileSystemInfoWrappers.
Declaration
protected override IEnumerable<FileSystemInfoWrapper> GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper parent)
Parameters
parent
Returns
IEnumerable<FileSystemInfoWrapper>
Overrides
InvokeSelectedFileSystemObjects()
Execute logic when accept is executed for the selected FileSystemInfoWrappers.
Declaration
protected override void InvokeSelectedFileSystemObjects()
Overrides
OnPropertyChanged(string)
Raises this object's PropertyChanged event.
Declaration
protected override void OnPropertyChanged(string propertyName)
Parameters
propertyName
The property that has a new value.
Overrides
OnPropertyChanging(string)
Declaration
protected override void OnPropertyChanging(string propertyName)
Parameters
propertyName
Overrides
ResetSelection()
Resets the selection.
Declaration
protected override void ResetSelection()
Overrides