Class OpenFileDialogViewModel
Provides a view model for setup and configuration of RadOpenFileDialog.
Inherited Members
Namespace: Telerik.WinControls.FileDialogs
Assembly: Telerik.WinControls.UI.dll
Syntax
public class OpenFileDialogViewModel : FileDialogViewModel, INotifyPropertyChanged, IDisposable, IDialogViewModel, ICurrentDirectoryViewModel, INotifyPropertyChanging, IFileFilterableModel, IFileExtensionFilterable, IMultiSelectable
Constructors
OpenFileDialogViewModel(FileSystemInfoWrapperFactoryBase, Boolean, String)
Initializes a new instance of the OpenFileDialogViewModel class.
Declaration
public OpenFileDialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")
Parameters
FileSystemInfoWrapperFactoryBase
fileSystemInfoWrapperFactory
The factory used from this OpenFileDialogViewModel 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
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.
Declaration
public bool DereferenceLinks { get; set; }
Property Value
System.Boolean
|
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
ReadOnlyChecked
Gets or sets a value indicating whether the read-only check box is selected.
Declaration
public bool ReadOnlyChecked { get; set; }
Property Value
System.Boolean
|
SelectedFileSystemInfoWrappers
Gets a collection of selected FileSystemInfoWrappers.
Declaration
public ObservableCollection<FileSystemInfoWrapper> SelectedFileSystemInfoWrappers { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<FileSystemInfoWrapper>
|
Implements
ShowReadOnly
Gets or sets a value indicating whether the dialog contains a read-only check box.
Declaration
public bool ShowReadOnly { get; set; }
Property Value
System.Boolean
|
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
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
ResetSelection()
Resets the selection.
Declaration
protected override void ResetSelection()