.net - 在选项卡之间移动时如何阻止 WPF 验证错误消失?

标签 .net wpf validation xaml binding

在选项卡之间切换时,我的验证错误消失了。

如何阻止这种情况发生?

最佳答案

在这里找到答案

http://karlshifflett.wordpress.com/2008/02/19/wpf-validation-errors-disappear-inside-tabcontrol-when-switching-tabitems/

事实证明,您需要将控件包装在 AdornerDecorator 中

<AdornerDecorator>
     Your controls go here
</AdornerDecorator>

这是WPF中的一个错误

https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=295933&wa=wsignin1.0

关于.net - 在选项卡之间移动时如何阻止 WPF 验证错误消失?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4382758/

相关文章:

c# - 在 C# 中,有没有办法打开第二个表单并选择一个选项卡?

c# - 使用接口(interface)的 DTO 映射

wpf - 在 DataTemplate 中使用 MVVM Light EventToCommand

java - 检查输入是否为数字时出现逻辑错误,如果不是则重新请求用户输入直到有效

.net - 在WPF世界中有6个月没有使用过的混合物,我应该使用它吗?

C# .NET MySql 只返回最后的结果

c# - 正则表达式多重替换

wpf - 执行 ApplicationCommands.Close 时实际发生的情况

通过 Oozie 的 Shell 脚本

javascript - jQuery:尝试绑定(bind)事件时对对象的错误引用