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