Class
OpenFileDialogViewModel

Provides a view model for setup and configuration of RadOpenFileDialog.

Definition

Namespace:Telerik.WinControls.FileDialogs

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class OpenFileDialogViewModel : FileDialogViewModel, INotifyPropertyChanged, IDisposable, IDialogViewModel, ICurrentDirectoryViewModel, INotifyPropertyChanging, IFileFilterableModel, IFileExtensionFilterable, IMultiSelectable

Inheritance: objectViewModelBaseDialogViewModelFileDialogViewModelOpenFileDialogViewModel

Implements: ICurrentDirectoryViewModelIDialogViewModelIDisposableIFileExtensionFilterableIFileFilterableModelIMultiSelectableINotifyPropertyChangedINotifyPropertyChanging

Inherited Members FileDialogViewModel.GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper)FileDialogViewModel.FilterIndexFileDialogViewModel.DefaultExtFileDialogViewModel.FilterFileDialogViewModel.IsFilterAppliedFileDialogViewModel.FilterDescriptorsFileDialogViewModel.SelectedFilterNameFileDialogViewModel.IsSearchActiveDialogViewModel.Dispose(bool)DialogViewModel.OnCurrentSearchResultsChanged()DialogViewModel.CreateNewChildFolder()DialogViewModel.CanEditExecute()DialogViewModel.OnEditExecuted()DialogViewModel.CanNewFolderExecute()DialogViewModel.OnNewFolderExecuted()DialogViewModel.CanCopyExecute()DialogViewModel.OnCopyCommand(IntPtr)DialogViewModel.CanCutExecute()DialogViewModel.OnCutCommand(IntPtr)DialogViewModel.CanPasteExecute()DialogViewModel.OnPasteCommand(IntPtr)DialogViewModel.CanDeleteExecute()DialogViewModel.OnDeleteCommand(IntPtr)DialogViewModel.CanExecuteHelper()DialogViewModel.PrepareCommandAndExecute(IntPtr, ShellContextMenuCommand)DialogViewModel.InvokeSelectedFileSystemObjects()DialogViewModel.OnSelectionChanged()DialogViewModel.OnPropertyChanging(string)DialogViewModel.ShouldCancelDiretoryNavigating(string)DialogViewModel.InvokeContextDialogViewModel.MainNavigationRootDialogViewModel.MainNavigationRootSourceDialogViewModel.EditingOptionsDialogViewModel.PathDialogViewModel.NameDialogViewModel.ShowHiddenFilesDialogViewModel.InitialDirectoryDialogViewModel.CurrentParentDirectoryDialogViewModel.SelectedFileSystemObjectDialogViewModel.CurrentFileSystemObjectsDialogViewModel.RootAndCurrentFileSystemObjectsDialogViewModel.IsDirectorySelectedDialogViewModel.CustomPlacesDialogViewModel.SelectedLayoutDialogViewModel.LayoutsDialogViewModel.IsMainPaneLoadingNetworkDialogViewModel.SelectedFilesInvokerDialogViewModel.FileSystemInfoWrapperFactoryDialogViewModel.CurrentSearchResultsDialogViewModel.IsSearchViewActiveDialogViewModel.DirectoryNavigatingDialogViewModel.PropertyChangingViewModelBase.Dispose()ViewModelBase.InvokeOnUIThread(Action)ViewModelBase.VerifyPropertyName(string)ViewModelBase.PropertyChanged

Constructors

OpenFileDialogViewModel(FileSystemInfoWrapperFactoryBase, bool, string)

Initializes a new instance of the OpenFileDialogViewModel class.

Declaration

cs-api-definition
public OpenFileDialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")

Parameters

fileSystemInfoWrapperFactory

FileSystemInfoWrapperFactoryBase

The factory used from this OpenFileDialogViewModel for creation of file system wrappers.

showNetwork

bool

Boolean indicating whether network locations are shown.

rootDirPath

string

The 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.

Declaration

cs-api-definition
public bool DereferenceLinks { get; set; }

Property Value

bool

MultiSelect

Gets or sets a value indicating whether multiple selection of files or folders is allowed.

Declaration

cs-api-definition
public bool MultiSelect { get; set; }

Property Value

bool

Implements IMultiSelectable.MultiSelect

ReadOnlyChecked

Gets or sets a value indicating whether the read-only check box is selected.

Declaration

cs-api-definition
public bool ReadOnlyChecked { get; set; }

Property Value

bool

SelectedFileSystemInfoWrappers

Gets a collection of selected FileSystemInfoWrappers.

Declaration

cs-api-definition
public ObservableCollection<FileSystemInfoWrapper> SelectedFileSystemInfoWrappers { get; }

Property Value

ObservableCollection<FileSystemInfoWrapper>

Implements IMultiSelectable.SelectedFileSystemInfoWrappers

ShowReadOnly

Gets or sets a value indicating whether the dialog contains a read-only check box.

Declaration

cs-api-definition
public bool ShowReadOnly { get; set; }

Property Value

bool

Methods

CanExecuteAccept()

Defines the method that determines whether the accept command can execute in its current state.

Declaration

cs-api-definition
protected override bool CanExecuteAccept()

Returns

bool

Overrides DialogViewModel.CanExecuteAccept()

OnPropertyChanged(string)

Raises this object's PropertyChanged event.

Declaration

cs-api-definition
protected override void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

The property that has a new value.

Overrides ViewModelBase.OnPropertyChanged(string)

ResetSelection()

Resets the selection.

Declaration

cs-api-definition
protected override void ResetSelection()

Overrides DialogViewModel.ResetSelection()