Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Adorner layer lost after selecting different tabitem (speaking of validationerror adorner)

$
0
0

 

Everyone,

 

I have a simple window with a TabControl and two TabItems.

 

The TextBoxs are wired up using the new 3.5 IDataErrorInfo validation and it works great!

 

Problem is, if I am on TabItem One, that is displaying several validationerror adorners, and then switch to TabItem Two and then switch back to TabItem One, all the validationerror adorners are now gone.  The validationerrors still exists, just no visual clues.

 

It took me a while to figure out that the adorner layer was being erased when the TabControl changes TabItems.

 

Is there a way to make this work without refeshing all the databindings using the UpdateSource method?

 

Thank you for your help.

 

 


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>