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 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;
        }
Пример #3
0
 public SearchFamilyTreeCommand(FamilyTreeViewModel familyTree)
 {
     _familyTree = familyTree;
 }
 public SearchFamilyTreeCommand(FamilyTreeViewModel familyTree)
 {
     _familyTree = familyTree;
 }