Skip to content

Instantly share code, notes, and snippets.

@grokys
Created May 18, 2020 15:15
Show Gist options
  • Save grokys/3c57998ee58de58a6442318213aa41f2 to your computer and use it in GitHub Desktop.
Save grokys/3c57998ee58de58a6442318213aa41f2 to your computer and use it in GitHub Desktop.

Thoughts on a combined DataGrid/TreeView control.

Prior Art

https://docs.telerik.com/devtools/wpf/controls/radtreelistview/overview

General Thoughts

  • Based on ItemsRepeater
  • Tree structure would be flattened at the model level
  • Probably split into two controls?
    • A low-level control which works on flattened/filtered data in case the user wants to handle this themselves at the model or view model level
    • A higher-level control which does the flattening/filtering
  • Low level control could consist of either (needs investigation)
    • A set of cells which would be added separately to the ItemsRepeater and an AttachedLayout to origanize them into columns/rows
    • A Row control which organizes its children into cells
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment