// Using a DependencyProperty as the backing store for TextH. This enables animation, styling, binding, etc...
public static readonly DependencyProperty TextHProperty =
DependencyProperty.Register("TextH", typeof(string), typeof(UserControl1), new PropertyMetadata("TextH+",(a,b)=> {
(a as UserControl1).tb1.Text = b.NewValue.ToString() ;
}));
写上这个方法,可以直接对绑定做出反应,之前写在属性的set里,只有赋值时才有反应,绑定没有反应