New to Telerik UI for WinFormsStart a free 30-day trial

Base ViewModel class for RadOpenFileDialog and RadSaveFileDialog components.

Definition

Namespace:Telerik.WinControls.FileDialogs

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class FileDialogViewModel : DialogViewModel, INotifyPropertyChanged, IDisposable, IDialogViewModel, ICurrentDirectoryViewModel, INotifyPropertyChanging, IFileFilterableModel, IFileExtensionFilterable

Inheritance: objectViewModelBaseDialogViewModelFileDialogViewModel

Derived Classes: OpenFileDialogViewModelSaveFileDialogViewModel

Implements: ICurrentDirectoryViewModelIDialogViewModelIDisposableIFileExtensionFilterableIFileFilterableModelINotifyPropertyChangedINotifyPropertyChanging...

Inherited Members DialogViewModel.Dispose(bool)DialogViewModel.OnCurrentSearchResultsChanged()DialogViewModel.CreateNewChildFolder()DialogViewModel.CanExecuteAccept()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.ResetSelection()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.OnPropertyChanged(string)ViewModelBase.VerifyPropertyName(string)ViewModelBase.PropertyChanged...

Constructors

Initializes a new instance of the FileDialogViewModel class.

C#
public FileDialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")
Parameters:fileSystemInfoWrapperFactoryFileSystemInfoWrapperFactoryBaseshowNetworkboolrootDirPathstring

Properties

Gets or sets a value that specifies the default extension string to use to filter the list of files that are displayed.

C#
public string DefaultExt { get; set; }

Implements: IFileExtensionFilterable.DefaultExt

Gets or sets the filter string that describes the list of extensions to filter by.

C#
public string Filter { get; set; }

Implements: IFileExtensionFilterable.Filter

Gets or sets the list of FileFilterDescriptors described by the Filter property.

C#
public IList<FileFilterDescriptor> FilterDescriptors { get; }

Implements: IFileFilterableModel.FilterDescriptors

Gets or sets the currently selected extension filter from the extensions described in the Filter property. The index value of the first filter entry is 1.

C#
public int FilterIndex { get; set; }

Implements: IFileExtensionFilterable.FilterIndex

Gets or sets a value indicating whether the current filtering is active or not.

C#
public bool IsFilterApplied { get; set; }

Implements: IFileFilterableModel.IsFilterApplied

SearchPane's IsSearchViewActive is OneWayToSource bound to IsSearchActive. This is the reason for the public modifier here.

C#
public bool IsSearchActive { get; set; }

Gets the FilterName of the currently applied filter.

C#
public string SelectedFilterName { get; }

Methods

Gets the current visible FileSystemInfoWrappers.

C#
protected override IEnumerable<FileSystemInfoWrapper> GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper parent)
Parameters:parentDirectoryBaseWrapperReturns:

IEnumerable<FileSystemInfoWrapper>

Overrides: DialogViewModel.GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper)