Provides a view model for setup and configuration of RadOpenFileDialog.
Definition
Namespace:Telerik.WinControls.FileDialogs
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class OpenFileDialogViewModel : FileDialogViewModel, INotifyPropertyChanged, IDisposable, IDialogViewModel, ICurrentDirectoryViewModel, INotifyPropertyChanging, IFileFilterableModel, IFileExtensionFilterable, IMultiSelectable
Inheritance: objectViewModelBaseDialogViewModelFileDialogViewModelOpenFileDialogViewModel
Implements:
Inherited Members
Constructors
Initializes a new instance of the OpenFileDialogViewModel class.
public OpenFileDialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")
The factory used from this OpenFileDialogViewModel 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 a file dialog returns either the location of the file referenced by a shortcut or the location of the shortcut file.
public bool DereferenceLinks { get; set; }
Gets or sets a value indicating whether multiple selection of files or folders is allowed.
public bool MultiSelect { get; set; }
Implements:
Gets or sets a value indicating whether the read-only check box is selected.
public bool ReadOnlyChecked { get; set; }
Gets a collection of selected FileSystemInfoWrappers.
public ObservableCollection<FileSystemInfoWrapper> SelectedFileSystemInfoWrappers { get; }
Implements:
Gets or sets a value indicating whether the dialog contains a read-only check box.
public bool ShowReadOnly { get; set; }
Methods
Defines the method that determines whether the accept command can execute in its current state.
Raises this object's PropertyChanged event.
protected override void OnPropertyChanged(string propertyName)
The property that has a new value.
Overrides:
Resets the selection.
protected override void ResetSelection()
Overrides: