Class
FileSystemInfoWrapperFactoryBase

Base factory class for creating FileSystemInfoWrappers from FileSystemInfos.

Definition

Namespace:Telerik.Windows.Controls.FileDialogs

Assembly:Telerik.Windows.Controls.FileDialogs.dll

Syntax:

cs-api-definition
public abstract class FileSystemInfoWrapperFactoryBase

Inheritance: objectFileSystemInfoWrapperFactoryBase

Constructors

FileSystemInfoWrapperFactoryBase()

Declaration

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

cs-api-definition
public abstract void CleanupPath(string filePath, DirectoryInfoWrapper parentWrapper, bool isRename = false)

Parameters

filePath

string

The path that no longer exists.

parentWrapper

DirectoryInfoWrapper

The DirectoryInfoWrapper of the parent folder.

isRename

bool

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

cs-api-definition
protected virtual bool ShouldCreateRequestedInfo(DirectoryInfo directoryInfo)

Parameters

directoryInfo

DirectoryInfo

Returns

bool

TryGetConcreteFileSystemInfoWrapper(FileSystemInfo, out FileSystemInfoWrapper)

Declaration

cs-api-definition
public abstract bool TryGetConcreteFileSystemInfoWrapper(FileSystemInfo fileSystemInfo, out FileSystemInfoWrapper fileSystemInfoWrapper)

Parameters

fileSystemInfo

FileSystemInfo

fileSystemInfoWrapper

FileSystemInfoWrapper

Returns

bool

TryGetDirectoryInfoWrapper(DirectoryInfo, out DirectoryInfoWrapper)

Returns the DirectoryInfoWrapper for a specific DirectoryInfo

Declaration

cs-api-definition
public abstract bool TryGetDirectoryInfoWrapper(DirectoryInfo directoryInfo, out DirectoryInfoWrapper directoryInfoWrapper)

Parameters

directoryInfo

DirectoryInfo

directoryInfoWrapper

DirectoryInfoWrapper

Returns

bool

Events

ChildFileDeleted

Occurs when a child file or folder is deleted/removed.

Declaration

cs-api-definition
public event EventHandler<ChildFileDeletedEventArgs> ChildFileDeleted

Event Value

EventHandler<ChildFileDeletedEventArgs>

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

cs-api-definition
public event EventHandler<DirectoryRequestingEventArgs> DirectoryRequesting

Event Value

EventHandler<DirectoryRequestingEventArgs>

ExceptionRaised

Occurs when creating a FileSystemInfo wrapper or DirectoryInfo wrapper produces an exception.

Declaration

cs-api-definition
public event EventHandler<FileBrowserExceptionRaisedEventArgs> ExceptionRaised

Event Value

EventHandler<FileBrowserExceptionRaisedEventArgs>