public TextSearchDemoControl()
        {
            InitializeComponent();

            // Get raw family tree data from a database.
            Person rootPerson = Database.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.
            base.DataContext = _familyTree;
        }
 public SearchFamilyTreeCommand(FamilyTreeViewModel familyTree)
 {
     _familyTree = familyTree;
 }