public override string ToString() { u = (SendURL)base.Tag; Binding myBinding = new Binding("URL"); myBinding.Mode = BindingMode.TwoWay; myBinding.Source = u; txturl.SetBinding(TextBox.TextProperty, myBinding); Binding myBinding2 = new Binding("option"); myBinding2.Mode = BindingMode.TwoWay; myBinding2.Source = u; txtopt.SetBinding(TextBox.TextProperty, myBinding2); Binding descbinding = new Binding("Description"); descbinding.Mode = BindingMode.TwoWay; descbinding.Source = u; txtdesc.SetBinding(TextBox.TextProperty, descbinding); return(base.ToString()); }
public override string ToString() { u = (SendURL)base.Tag; Binding myBinding = new Binding("URL"); myBinding.Mode = BindingMode.TwoWay; myBinding.Source = u; txturl.SetBinding(TextBox.TextProperty, myBinding); Binding myBinding2 = new Binding("option"); myBinding2.Mode = BindingMode.TwoWay; myBinding2.Source = u; txtopt.SetBinding(TextBox.TextProperty, myBinding2); Binding descbinding = new Binding("Description"); descbinding.Mode = BindingMode.TwoWay; descbinding.Source =u; txtdesc.SetBinding(TextBox.TextProperty, descbinding); return base.ToString(); }