1

I have a Silverlight TabControl which has two TabItems. In the second, I have a TextBox, and I want to bind its Text property to an other TextBox's Text property, which is in the first TabItem.

ElementName doesn't work, the Path for RelativeSource is way too long. Any ideas?

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
realbizkit
  • 71
  • 1
  • 3

1 Answers1

1

Use a view model, implement INotifyPropertyChanged, make both textbox datacontext to this view model, and bind to the relevant property, if you don't understand I'll provide code.

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
Chen Kinnrot
  • 20,609
  • 17
  • 79
  • 141