Class OpenFolderDialogViewModel
Provides a view model for setup and configuration of RadOpenFolderDialog.
Inherited Members
Namespace: Telerik.WinControls.FileDialogs
Assembly: Telerik.WinControls.UI.dll
Syntax
public class OpenFolderDialogViewModel : DialogViewModel, INotifyPropertyChanged, IDisposable, IDialogViewModel, ICurrentDirectoryViewModel, INotifyPropertyChanging, IMultiSelectable
Constructors
OpenFolderDialogViewModel(FileSystemInfoWrapperFactoryBase, Boolean, String)
Initializes a new instance of the OpenFolderDialogViewModel class.
Declaration
public OpenFolderDialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")
Parameters
FileSystemInfoWrapperFactoryBase
fileSystemInfoWrapperFactory
The factory used from this OpenFolderDialogViewModel for creation of file system wrappers. |
System.Boolean
showNetwork
Boolean indicating whether network locations are shown. |
System.String
rootDirPath
The path of the initial directory. |
Properties
MultiSelect
Gets or sets a value indicating whether multiple selection of files or folders is allowed.
Declaration
public bool MultiSelect { get; set; }
Property Value
System.Boolean
|
Implements
SelectedFileSystemInfoWrappers
Gets a collection of selected FileSystemInfoWrappers.
Declaration
public ObservableCollection<FileSystemInfoWrapper> SelectedFileSystemInfoWrappers { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<FileSystemInfoWrapper>
|
Implements
Methods
CanExecuteAccept()
Defines the method that determines whether the accept command can execute in its current state.
Declaration
protected override bool CanExecuteAccept()
Returns
System.Boolean
|
Overrides
GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper)
Gets the current visible FileSystemInfoWrappers.
Declaration
protected override IEnumerable<FileSystemInfoWrapper> GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper parent)
Parameters
DirectoryBaseWrapper
parent
|
Returns
System.Collections.Generic.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
System.String
propertyName
The property that has a new value. |
Overrides
OnPropertyChanging(String)
Declaration
protected override void OnPropertyChanging(string propertyName)
Parameters
System.String
propertyName
|
Overrides
ResetSelection()
Resets the selection.
Declaration
protected override void ResetSelection()