TreeDataGrid now supports two first-class setup styles:
ItemsSource plus declarative columns in XAMLSource plus fluent column builders in codeUse the XAML path when you want the control definition to live in markup. Use the Source path when you need features such as filtering or programmatic expand/collapse.