FileExplorerAssistant.Attach(TreeList, Action<TreeListExtension>) Method
Creates a new TreeListExtension and attaches it to the target Tree List.
Namespace: DevExpress.XtraDialogs
Assembly: DevExpress.XtraDialogs.v24.2.dll
NuGet Packages: DevExpress.Win.Dialogs, DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
tree |
Tree |
The |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
settings | Action<DevExpress. |
null | A delegate that sets up the newly created |
#Returns
Type | Description |
---|---|
DevExpress. |
The newly created |
#Remarks
The code below illustrates how to create a TreeListExtension
with required settings and attach it to the “treeList1” control. The GuidNode
added to the RootNodes
collection is the “Desktop” Windows folder.
var extension = fileExplorerAssistant1.Attach(treeList1, x=> {
x.RootNodes.Add(new GuidNode(new Guid("B4BFCC3A-DB2C-424C-B029-7FE99A87C641")));
// Other settings
});
See this article for more information on extensions and their core settings: Custom Browsers (FileExplorerAssistant Component).