Error border disappears when navigating back to View

Topics: Prism v4 - Silverlight 4, Prism v4 - WPF 4
Aug 25, 2011 at 8:55 AM

Hi,

I have a view with a couple of textboxes that mustn't be empty. When the view is loaded the first time I get the red error border around them; the ViewModel implements IDataErrorInfo. However, when I navigateto a different view, then come back again the red border has disappeared. My question now is what I need to do to display them again? I cannot use KeepAlive returning false in this case.

Thanks, Marco

 

 



        
    
Developer
Aug 25, 2011 at 5:53 PM

Hi Marco,

Have you tried registering the view as a singleton? If the view is registered like this you will always navigate to the same instance of the view so it should have the same "state" when you navigate back to it.

If this does not resolve you problem or if I had misunderstood you scenario, it would be helpful if you could provide us with a replo sample portraying this problem so that we can help you find the cause behind it.

I hope you find this useful,

Damian Cherubini
http://blogs.southworks.net/dcherubini