I want show something like the Telerik ExplorerControl in folder-browser mode. But in my control, I need certain folders are shown with a custom icon /view that will reflect the contents of the folder. I love all the tree-view functionality of the control and do not want to re-invent all of that. but I need the main pane to show my view, not Telerik's
Basically when ever a folder contains a file named "scan.yaml" and "image01.png", I want my UI to show the contents of "image01.png" as the folder instead of the regular folder icon. (My code actually does some background processing to overlay other information on that image sometimes but that's not important for now)
Is this possible or would I need to use my own Tree View?
I thought of a few approaches. Can you tell me which, if any of these are feasible and which would work best?
1. Use a ControlTemplate that totally replaces the contents of`PART_MainPane` which is currently this
<historyNavigationPane:FileBrowserTabControl x:Name="PART_MainPane"
Grid.Column="2"
SelectedIndex="{Binding ElementName=PART_LayoutConfigurator, Path=SelectedIndex}"
ItemsSource="{Binding Layouts}"
ContentTemplateSelector="{StaticResource MainPaneTabControlTemplateSelector}">
Is it feasible to use a style for ExplorerControl with a ControlTemplate that completely tears that out and replaces that `FileBrowserTabControl` it with my own control?
2. Use a ControlTemplate that does not show the MainPane at all and just puts my custom control next to the existing tree view. My control could then key off its sibling's `CurrentDirectory` property
3. Try to find some way to customize how FileBrowserTabControl shows the folder contents as I described
Would any of these work.
I've attached an image of part of what my control looks like in large-icon mode. It shows two regular folders and two of the "special" folders that I mentioned
(Also I looked for a question tag for ExplorerControl but could not find one so I tagged "General Discussion")