8,744
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
TextBox textBox1 = new TextBox();
TextBox textBox2 = new TextBox() { TextWrapping = TextWrapping.Wrap, Width = 100 };
Binding bindings = new Binding();
bindings.Path = new PropertyPath("Text");
bindings.Source = textBox1;
textBox2.SetBinding(TextBox.TextProperty,bindings);
this.controlContainer.Children.Add(textBox1);
ToolTip tip = new ToolTip();
tip.Content = textBox2;
ToolTipService.SetToolTip(textBox1, tip);