private void LoadDirectory(IDirectoryViewItem file) { gContent.Children.Clear(); DirectoryPreview dirPreview = new DirectoryPreview(); dirPreview.LoadDirectory(file.CreateFileSystem().GetDirectoryContent(file.FullName)); gContent.Children.Add(dirPreview); }