private void expand() { if (this.type == DirectoryItemType.File) { return; } this.children = new ObservableCollection <DirectoryItemVM>(DirectoryStructure.getDirectoryContents(FullPath).Select(content => new DirectoryItemVM(content.FullPath, content.type))); }