public override string ToString() { s = (SetCDRUserfield)base.Tag; Binding myBinding2 = new Binding("userfield"); myBinding2.Mode = BindingMode.TwoWay; myBinding2.Source = s; txtval.SetBinding(TextBox.TextProperty, myBinding2); Binding descbinding = new Binding("Description"); descbinding.Mode = BindingMode.TwoWay; descbinding.Source = s; txtdesc.SetBinding(TextBox.TextProperty, descbinding); return base.ToString(); }
public override string ToString() { s = (SetCDRUserfield)base.Tag; Binding myBinding2 = new Binding("userfield"); myBinding2.Mode = BindingMode.TwoWay; myBinding2.Source = s; txtval.SetBinding(TextBox.TextProperty, myBinding2); Binding descbinding = new Binding("Description"); descbinding.Mode = BindingMode.TwoWay; descbinding.Source = s; txtdesc.SetBinding(TextBox.TextProperty, descbinding); return(base.ToString()); }