Class
FileDialogViewModel

Base ViewModel class for RadOpenFileDialog and RadSaveFileDialog components.

Definition

Namespace:Telerik.WinControls.FileDialogs

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
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

FileDialogViewModel(FileSystemInfoWrapperFactoryBase, bool, string)

Initializes a new instance of the FileDialogViewModel class.

Declaration

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

Parameters

fileSystemInfoWrapperFactory

FileSystemInfoWrapperFactoryBase

showNetwork

bool

rootDirPath

string

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

cs-api-definition
public string DefaultExt { get; set; }

Property Value

string

Implements IFileExtensionFilterable.DefaultExt

Filter

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

Declaration

cs-api-definition
public string Filter { get; set; }

Property Value

string

Implements IFileExtensionFilterable.Filter

FilterDescriptors

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

Declaration

cs-api-definition
public IList<FileFilterDescriptor> FilterDescriptors { get; }

Property Value

IList<FileFilterDescriptor>

Implements IFileFilterableModel.FilterDescriptors

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

cs-api-definition
public int FilterIndex { get; set; }

Property Value

int

Implements IFileExtensionFilterable.FilterIndex

IsFilterApplied

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

Declaration

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

Property Value

bool

Implements IFileFilterableModel.IsFilterApplied

IsSearchActive

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

Declaration

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

Property Value

bool

SelectedFilterName

Gets the FilterName of the currently applied filter.

Declaration

cs-api-definition
public string SelectedFilterName { get; }

Property Value

string

Methods

GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper)

Gets the current visible FileSystemInfoWrappers.

Declaration

cs-api-definition
protected override IEnumerable<FileSystemInfoWrapper> GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper parent)

Parameters

parent

DirectoryBaseWrapper

Returns

IEnumerable<FileSystemInfoWrapper>

Overrides DialogViewModel.GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper)