public SimpleDataBinding2()
 {
     InitializeComponent();
     _person = new Person() { Name = "The old", Age = 100 };
     this.textBox_Age.DataContext = _person;
     this.textBox_Name.DataContext = _person;
 }
        public DeomWithoutDataBinding()
        {
            InitializeComponent();
            _person = new Person();

            _person.PropertyChanged += delegate(object sender, PropertyChangedEventArgs e)
            {
                switch (e.PropertyName)
                {
                    case "Name":
                        this.textBox_Name.Text = _person.Name;
                        break;
                    case "Age":
                        this.textBox_Age.Text = _person.Age.ToString();
                        break;

                }
            };
        }
 private void button_SetNewValue_Click(object sender, RoutedEventArgs e)
 {
     _person = (Person)this.FindResource("Tom");
     _person.Name = "New Tom";
     _person.Age = 99;
 }