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 Open
Declaration
public OpenFolderDialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")
Parameters
File The factory used from this Open |
System. Boolean indicating whether network locations are shown. |
System. 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.
|
Implements
SelectedFileSystemInfoWrappers
Gets a collection of selected File
Declaration
public ObservableCollection<FileSystemInfoWrapper> SelectedFileSystemInfoWrappers { get; }
Property Value
System.
|
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.
|
Overrides
GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper)
Gets the current visible File
Declaration
protected override IEnumerable<FileSystemInfoWrapper> GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper parent)
Parameters
Directory
|
Returns
System.
|
Overrides
InvokeSelectedFileSystemObjects()
Execute logic when accept is executed for the selected File
Declaration
protected override void InvokeSelectedFileSystemObjects()
Overrides
OnPropertyChanged(String)
Raises this object's Property
Declaration
protected override void OnPropertyChanged(string propertyName)
Parameters
System. The property that has a new value. |
Overrides
OnPropertyChanging(String)
Declaration
protected override void OnPropertyChanging(string propertyName)
Parameters
System.
|
Overrides
ResetSelection()
Resets the selection.
Declaration
protected override void ResetSelection()