Class FileSystemTreeBuilder
TreeView builder for creating file system based trees.
public class FileSystemTreeBuilder : ITreeBuilder<IFileSystemInfo>, IComparer<IFileSystemInfo>
- Inheritance
-
FileSystemTreeBuilder
- Implements
-
ITreeBuilder<IFileSystemInfo>IComparer<IFileSystemInfo>
- Inherited Members
Constructors
- FileSystemTreeBuilder()
Creates a new instance of the FileSystemTreeBuilder class.
Properties
- IncludeFiles
Gets or sets a flag indicating whether to show files as leaf elements in the tree. Defaults to true.
- SupportsCanExpand
Returns true if CanExpand(T) is implemented by this class
Methods
- CanExpand(IFileSystemInfo)
Returns true/false for whether a model has children. This method should be implemented when GetChildren(T) is an expensive operation otherwise SupportsCanExpand should return false (in which case this method will not be called)
- Compare(IFileSystemInfo, IFileSystemInfo)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
- GetChildren(IFileSystemInfo)
Returns all children of a given
forObject
which should be added to the tree as new branches underneath it