public UserFamilyCtrl() { Person rootPerson = db.GetFamilyTree(); // Create UI-friendly wrappers around the // raw data objects (i.e. the view-model). _familyTree = new FamilyTreeViewModel(rootPerson); // Let the UI bind to the view-model. InitializeComponent(); // Let the UI bind to the view-model. base.DataContext = _familyTree; }
public SearchFamilyTreeCommand(FamilyTreeViewModel familyTree) { _familyTree = familyTree; }