public TreeView() { InitializeComponent(); // Let the UI bind to the view-model. DataContext = TreeItem.GetSolutionTree(); }