开发者

How to stop WPF validation errors dissapearing when moving between tabs?

When switching between tabs my validation errors are disappearing.

How do I 开发者_如何学编程stop this from happening?


Found the answer here

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

Turns out that you need to wrap your controls in a AdornerDecorator

<AdornerDecorator>
     Your controls go here
</AdornerDecorator>

It is a bug in WPF

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜