Base factory class for creating FileSystemInfoWrappers from FileSystemInfos.
Definition
Namespace:Telerik.WinControls.FileDialogs
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class FileSystemInfoWrapperFactoryBase
Inheritance: objectFileSystemInfoWrapperFactoryBase
Constructors
protected FileSystemInfoWrapperFactoryBase()
Methods
Called when a file path no longer exists (for example when a file is moved, renamed or deleted).
public abstract void CleanupPath(string filePath, DirectoryInfoWrapper parentWrapper, bool isRename = false)
The path that no longer exists.
parentWrapperDirectoryInfoWrapperThe DirectoryInfoWrapper of the parent folder.
isRenameboolIndicates whether the file is being renamed causing deleted event.
Returns a value indicating whether a DirectoryInfoWrapper will be created for the passed DirectoryInfo.
protected virtual bool ShouldCreateRequestedInfo(DirectoryInfo directoryInfo)
Returns FileSystemInfoWrappers from FileSystemInfos.
public abstract bool TryGetConcreteFileSystemInfoWrapper(FileSystemInfo fileSystemInfo, out FileSystemInfoWrapper fileSystemInfoWrapper)
Returns the DirectoryInfoWrapper for a specific DirectoryInfo
public abstract bool TryGetDirectoryInfoWrapper(DirectoryInfo directoryInfo, out DirectoryInfoWrapper directoryInfoWrapper)
Events
Occurs when a child file or folder is deleted/removed.
public event EventHandler<ChildFileDeletedEventArgs> ChildFileDeleted
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.
public event EventHandler<DirectoryRequestingEventArgs> DirectoryRequesting
Occurs when creating a FileSystemInfo wrapper or DirectoryInfo wrapper produces an exception.
public event EventHandler<FileBrowserExceptionRaisedEventArgs> ExceptionRaised