Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
textBox1\u在wpf中离开_Wpf_Events - Fatal编程技术网

textBox1\u在wpf中离开

textBox1\u在wpf中离开,wpf,events,Wpf,Events,在wpf中,以下等效代码是什么 winapp中的代码: private void textBox1_Leave(object sender, EventArgs e) { MessageBox.Show("www.stackoverflow.com"); } (实际上,您甚至可以像以前一样重用相同的签名,只需将该方法挂接到LostFocus事件,而不是Leave事件) private void textBox1_LostFocus(object

在wpf中,以下等效代码是什么

winapp中的代码:

        private void textBox1_Leave(object sender, EventArgs e)
    {
        MessageBox.Show("www.stackoverflow.com");
    }
(实际上,您甚至可以像以前一样重用相同的签名,只需将该方法挂接到
LostFocus
事件,而不是
Leave
事件)

private void textBox1_LostFocus(object sender, RoutedEventArgs e)
{
    MessageBox.Show("www.stackoverflow.com");
}