(WPF)Textbox每次输入触发事件处理-创新互联
1. Code behind. 
名称栏目:(WPF)Textbox每次输入触发事件处理-创新互联
网页地址:http://dcwzsj.com/article/hpcdg.html

protected void TextBox1_TextChanged(object sender, EventArgs e)
{
Label1.Text= Server.HtmlEncode(TextBox1.Text);
}
2. Event trigger
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
3. MVVM ( Prefered)
名称栏目:(WPF)Textbox每次输入触发事件处理-创新互联
网页地址:http://dcwzsj.com/article/hpcdg.html