Class DialogViewModel
Base class for the different file dialogs.
Inherited Members
Namespace: Telerik.WinControls.FileDialogs
Assembly: Telerik.WinControls.UI.dll
Syntax
public abstract class DialogViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable, IDialogViewModel, ICurrentDirectoryViewModel, INotifyPropertyChanging
Constructors
DialogViewModel(FileSystemInfoWrapperFactoryBase, Boolean, String)
Initializes a new instance of the Dialog
Declaration
protected DialogViewModel(FileSystemInfoWrapperFactoryBase fileSystemInfoWrapperFactory, bool showNetwork, string rootDirPath = "")
Parameters
File The File |
System. Boolean indicating whether network locations are shown. |
System. The path of the initial directory. |
Properties
CurrentFileSystemObjects
Gets the currently visible File
Declaration
public BindingList<FileSystemInfoWrapper> CurrentFileSystemObjects { get; }
Property Value
System.
|
CurrentParentDirectory
Gets the currently drilled directory.
Declaration
public DirectoryBaseWrapper CurrentParentDirectory { get; set; }
Property Value
Implements
CurrentSearchResults
Collection of search results. We do not use ViewModels CurrentFileSystemObjects in order to be process the results in background successfully.
Declaration
public BindingList<FileSystemInfoWrapper> CurrentSearchResults { get; }
Property Value
System.
|
CustomPlaces
Gets or sets the collection of custom places.
Declaration
public IEnumerable<DirectoryInfoWrapper> CustomPlaces { get; set; }
Property Value
System.
|
Implements
EditingOptions
Determines how the files and folders in the Dialog
Declaration
public EditingOptions EditingOptions { get; set; }
Property Value
FileSystemInfoWrapperFactory
Gets the File
Declaration
protected FileSystemInfoWrapperFactoryBase FileSystemInfoWrapperFactory { get; }
Property Value
InitialDirectory
Gets or sets the initial directory.
Declaration
public DirectoryBaseWrapper InitialDirectory { get; set; }
Property Value
Implements
InvokeContext
Declaration
public static ExplorerControl InvokeContext { get; set; }
Property Value
IsDirectorySelected
Return true if the selected item is directory.
Declaration
public bool IsDirectorySelected { get; }
Property Value
System.
|
IsMainPaneLoadingNetwork
Used to trigger a busy indicator while network location is being loaded for the main pane.
Declaration
public bool IsMainPaneLoadingNetwork { get; set; }
Property Value
System.
|
IsSearchViewActive
Gets or sets the Is
Declaration
public bool IsSearchViewActive { get; set; }
Property Value
System.
|
Layouts
Gets the available layouts for the dialog explorer.
Declaration
public virtual IEnumerable<LayoutConfigurationModel> Layouts { get; }
Property Value
System.
|
Implements
MainNavigationRoot
MainNavigationRootSource
Name
Gets or sets a string representing the full path to the current file system object.
Declaration
public string Name { get; set; }
Property Value
System.
|
Implements
Path
Gets a string representing the path to the current folder.
Declaration
public string Path { get; }
Property Value
System.
|
Implements
RootAndCurrentFileSystemObjects
Gets the currently root and current visible File
Declaration
public BindingList<FileSystemInfoWrapper> RootAndCurrentFileSystemObjects { get; }
Property Value
System.
|
SelectedFilesInvoker
Declaration
public IInvokeSelectedFileSystemObjects SelectedFilesInvoker { get; set; }
Property Value
SelectedFileSystemObject
Gets the currently selected file or folder.
Declaration
public FileSystemInfoWrapper SelectedFileSystemObject { get; set; }
Property Value
Implements
SelectedLayout
Gets the selected Layout
Declaration
public LayoutConfigurationModel SelectedLayout { get; set; }
Property Value
Implements
ShowHiddenFiles
Gets or sets a boolean value indicating whether the dialog shows hidden files and folders.
Declaration
public bool ShowHiddenFiles { get; set; }
Property Value
System.
|
Implements
Methods
CanCopyExecute()
Declaration
protected virtual bool CanCopyExecute()
Returns
System.
|
CanCutExecute()
Declaration
protected virtual bool CanCutExecute()
Returns
System.
|
CanDeleteExecute()
Declaration
protected virtual bool CanDeleteExecute()
Returns
System.
|
CanEditExecute()
Declaration
protected virtual bool CanEditExecute()
Returns
System.
|
CanExecuteAccept()
Defines the method that determines whether the accept command can execute in its current state.
Declaration
protected virtual bool CanExecuteAccept()
Returns
System.
|
CanExecuteHelper()
Declaration
protected virtual bool CanExecuteHelper()
Returns
System.
|
CanNewFolderExecute()
Declaration
protected virtual bool CanNewFolderExecute()
Returns
System.
|
CanPasteExecute()
Declaration
protected virtual bool CanPasteExecute()
Returns
System.
|
CreateNewChildFolder()
Creates new child folder in the Current
Declaration
public bool CreateNewChildFolder()
Returns
System.
|
Implements
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
System.
|
Overrides
GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper)
Gets the current visible File
Declaration
protected abstract IEnumerable<FileSystemInfoWrapper> GetCurrentFileSystemInfoWrappers(DirectoryBaseWrapper parent)
Parameters
Directory
|
Returns
System.
|
InvokeSelectedFileSystemObjects()
Execute logic when accept is executed for the selected File
Declaration
protected virtual void InvokeSelectedFileSystemObjects()
OnCopyCommand(IntPtr)
Declaration
protected virtual void OnCopyCommand(IntPtr controlHandle)
Parameters
System.
|
OnCurrentSearchResultsChanged()
Declaration
public void OnCurrentSearchResultsChanged()
OnCutCommand(IntPtr)
Declaration
protected virtual void OnCutCommand(IntPtr controlHandle)
Parameters
System.
|
OnDeleteCommand(IntPtr)
Declaration
protected virtual void OnDeleteCommand(IntPtr controlHandle)
Parameters
System.
|
OnEditExecuted()
Declaration
protected virtual void OnEditExecuted()
OnNewFolderExecuted()
Declaration
protected virtual void OnNewFolderExecuted()
OnPasteCommand(IntPtr)
Declaration
protected virtual void OnPasteCommand(IntPtr controlHandle)
Parameters
System.
|
OnPropertyChanging(String)
Declaration
protected virtual void OnPropertyChanging(string propertyName)
Parameters
System.
|
OnSelectionChanged()
Notifies when the SelectedFileSystemObject changes.
Declaration
protected virtual void OnSelectionChanged()
PrepareCommandAndExecute(IntPtr, ShellContextMenuCommand)
Declaration
protected virtual void PrepareCommandAndExecute(IntPtr controlHandle, ShellContextMenuCommand command)
Parameters
System.
|
Shell
|
ResetSelection()
Resets the selection.
Declaration
protected virtual void ResetSelection()
ShouldCancelDiretoryNavigating(String)
Events
DirectoryNavigating
PropertyChanging
Declaration
public event PropertyChangingEventHandler PropertyChanging
Event Type
System.
|