中的WinForms TextBox.Validating事件在WPF等效 [英] Equivalent of WinForms TextBox.Validating event in WPF

查看:181
本文介绍了中的WinForms TextBox.Validating事件在WPF等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在的WinForms后,用户在TextBox改变文字我能胜任Validated事件做一些事情。与框TextChanged,验证未点亮每个字符的变化;它只有用户做的时候解雇了。

In WinForms I could handle the Validated event to do something after the user changed text in a TextBox. Unlike TextChanged, Validated didn't fire for every character change; it only fired when the user was done.

有什么在WPF我可以用它来得到相同的结果,只有在用户是一个事件引发的完成的修改文字?

Is there anything in WPF I can use to get the same result, an event raised only after the user is done changing the text?

推荐答案

引发LostFocus 将触发时,从文本到任何其他控制的用户移动。

LostFocus will fire when the user moves from your textbox onto any other control.

这篇关于中的WinForms TextBox.Validating事件在WPF等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆