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 Open
Declaration
public OpenFileDialogViewModel(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
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.
|
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
ReadOnlyChecked
Gets or sets a value indicating whether the read-only check box is selected.
Declaration
public bool ReadOnlyChecked { get; set; }
Property Value
System.
|
SelectedFileSystemInfoWrappers
Gets a collection of selected File
Declaration
public ObservableCollection<FileSystemInfoWrapper> SelectedFileSystemInfoWrappers { get; }
Property Value
System.
|
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.
|
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
OnPropertyChanged(String)
Raises this object's Property
Declaration
protected override void OnPropertyChanged(string propertyName)
Parameters
System. The property that has a new value. |
Overrides
ResetSelection()
Resets the selection.
Declaration
protected override void ResetSelection()