ClassFileSystemInfoWrapperFactoryBase
Base factory class for creating FileSystemInfoWrappers from FileSystemInfos.
Definition
Namespace:Telerik.Windows.Controls.FileDialogs
Assembly:Telerik.Windows.Controls.FileDialogs.dll
Syntax:
public abstract class FileSystemInfoWrapperFactoryBase
Inheritance: objectFileSystemInfoWrapperFactoryBase
Constructors
FileSystemInfoWrapperFactoryBase()
Declaration
protected FileSystemInfoWrapperFactoryBase()
Methods
CleanupPath(string, DirectoryInfoWrapper, bool)
Called when a file path no longer exists (for example when a file is moved, renamed or deleted).
Declaration
public abstract void CleanupPath(string filePath, DirectoryInfoWrapper parentWrapper, bool isRename = false)
Parameters
filePath
The path that no longer exists.
parentWrapper
The DirectoryInfoWrapper of the parent folder.
isRename
Indicates whether the file is being renamed causing deleted event.
ShouldCreateRequestedInfo(DirectoryInfo)
Returns a value indicating whether a DirectoryInfoWrapper will be created for the passed DirectoryInfo.
Declaration
protected virtual bool ShouldCreateRequestedInfo(DirectoryInfo directoryInfo)
Parameters
directoryInfo
Returns
TryGetConcreteFileSystemInfoWrapper(FileSystemInfo, out FileSystemInfoWrapper)
Returns FileSystemInfoWrappers from FileSystemInfos.
Declaration
public abstract bool TryGetConcreteFileSystemInfoWrapper(FileSystemInfo fileSystemInfo, out FileSystemInfoWrapper fileSystemInfoWrapper)
Parameters
fileSystemInfo
fileSystemInfoWrapper
Returns
TryGetDirectoryInfoWrapper(DirectoryInfo, out DirectoryInfoWrapper)
Returns the DirectoryInfoWrapper for a specific DirectoryInfo
Declaration
public abstract bool TryGetDirectoryInfoWrapper(DirectoryInfo directoryInfo, out DirectoryInfoWrapper directoryInfoWrapper)
Parameters
directoryInfo
directoryInfoWrapper
Returns
Events
ChildFileDeleted
Occurs when a child file or folder is deleted/removed.
Declaration
public event EventHandler<ChildFileDeletedEventArgs> ChildFileDeleted
Event Value
DirectoryRequesting
Occurs when DirectoryInfo wrapper is about to be created. User can cancel the creation by handling the event and setting the DirectoryRequestingEventArgs 's Cancel property to true.
Declaration
public event EventHandler<DirectoryRequestingEventArgs> DirectoryRequesting
Event Value
ExceptionRaised
Occurs when creating a FileSystemInfo wrapper or DirectoryInfo wrapper produces an exception.
Declaration
public event EventHandler<FileBrowserExceptionRaisedEventArgs> ExceptionRaised
Event Value