ClassOpenFileDialogViewModel
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
OpenFileDialogViewModel(FileSystemInfoWrapperFactoryBase, bool, string)
Initializes a new instance of the OpenFileDialogViewModel class.
Declaration
public OpenFileDialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")
Parameters
fileSystemInfoWrapperFactory
FileSystemInfoWrapperFactoryBase
The factory used from this OpenFileDialogViewModel for creation of file system wrappers.
showNetwork
Boolean indicating whether network locations are shown.
rootDirPath
The path of the initial directory.
Properties
DereferenceLinks
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.
MultiSelect
Gets or sets a value indicating whether multiple selection of files or folders is allowed.
ReadOnlyChecked
Gets or sets a value indicating whether the read-only check box is selected.
SelectedFileSystemInfoWrappers
Gets a collection of selected FileSystemInfoWrappers.
Declaration
public ObservableCollection<FileSystemInfoWrapper> SelectedFileSystemInfoWrappers { get; }
Property Value
Implements
ShowReadOnly
Gets or sets a value indicating whether the dialog contains a read-only check box.
Methods
CanExecuteAccept()
Defines the method that determines whether the accept command can execute in its current state.
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
ResetSelection()
Resets the selection.
Declaration
protected override void ResetSelection()
Overrides