Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public SearchFamilyTreeCommand(FamilyTreeViewModel familyTree)
 {
     _familyTree = familyTree;
 }