Hi!
I've to create a tree that represent Files and Folder.
my actual structure is:
Folder object has
-->SubFolder ObservableCollection
-->File List (observablecollection too)
I need to have in the same tree files and folder.
I've no problem creating a treee browsing Folders:
But how can I get files with that too?
They both have a "Name" property
I've to create a tree that represent Files and Folder.
my actual structure is:
Folder object has
-->SubFolder ObservableCollection
-->File List (observablecollection too)
I need to have in the same tree files and folder.
I've no problem creating a treee browsing Folders:
<Grid> <Grid.RowDefinitions> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid.Resources> <HierarchicalDataTemplate x:Key="NodeTemplate" ItemsSource="{Binding SubFolders}"> <TextBlock Text="{Binding Name}"/> </HierarchicalDataTemplate> </Grid.Resources> <telerik:RadTreeView Name="uxRadTreeView" ItemsSource="{Binding RootFolder.SubFolders}" ItemTemplate="{StaticResource NodeTemplate}" AllowDrop="False" IsDragDropEnabled="True" DragEnded="uxRadTreeView_DragEnded" /></Grid>But how can I get files with that too?
They both have a "Name" property