ClassFileDialogViewModel
Base ViewModel class for RadOpenFileDialog and RadSaveFileDialog components.
Definition
Namespace:Telerik.WinControls.FileDialogs
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class FileDialogViewModel : DialogViewModel, INotifyPropertyChanged, IDisposable, IDialogViewModel, ICurrentDirectoryViewModel, INotifyPropertyChanging, IFileFilterableModel, IFileExtensionFilterable
Inheritance: objectViewModelBaseDialogViewModelFileDialogViewModel
Derived Classes:
Implements:
Inherited Members
Constructors
FileDialogViewModel(FileSystemInfoWrapperFactoryBase, bool, string)
Initializes a new instance of the FileDialogViewModel class.
Declaration
public FileDialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")
Parameters
fileSystemInfoWrapperFactory
FileSystemInfoWrapperFactoryBase
showNetwork
rootDirPath
Properties
DefaultExt
Gets or sets a value that specifies the default extension string to use to filter the list of files that are displayed.
Declaration
public string DefaultExt { get; set; }
Property Value
Implements
Filter
Gets or sets the filter string that describes the list of extensions to filter by.
FilterDescriptors
Gets or sets the list of FileFilterDescriptors described by the Filter property.
Declaration
public IList<FileFilterDescriptor> FilterDescriptors { get; }
Property Value
IList<FileFilterDescriptor>
Implements
FilterIndex
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.
IsFilterApplied
Gets or sets a value indicating whether the current filtering is active or not.
Declaration
public bool IsFilterApplied { get; set; }
Property Value
Implements
IsSearchActive
SearchPane's IsSearchViewActive is OneWayToSource bound to IsSearchActive. This is the reason for the public modifier here.
SelectedFilterName
Gets the FilterName of the currently applied filter.
Methods
GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper)
Gets the current visible FileSystemInfoWrappers.
Declaration
protected override IEnumerable<FileSystemInfoWrapper> GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper parent)
Parameters
parent
Returns
IEnumerable<FileSystemInfoWrapper>
Overrides