Thanks for the reply. The problem in making it modal is this is part of a 
wizard and has many pages to fill out so I don't know that modal will work.

What I ended up doing was adding a bool ShouldValidate property in the derived 
element, and then in the controller's ViewWillDisappear method I set the 
ShouldValidate to false on all of the elements. It works well. If you see a 
hole in this strategy, it would be great to hear it.

Dan Miser
Sent from my iPhone

On Nov 4, 2012, at 6:33 PM, Miguel de Icaza <[email protected]> wrote:

> Hello,
> 
>> The problem that I'm having is that if I press the Back button on the form
>> in the top left, the validation still triggers and also allows the back
>> navigation to occur. I'd like to prevent the navigation from happening,
>> which I assume will also fix the other error I'm having where the message
>> gets displayed 3-4 times after the back navigation has happened.
>> 
>> Any ideas?
> 
> What Apple does with their interfaces is to make these kind of UIs be modal.  
>  That means that you do not have a back button, and instead you provide a 
> "Cancel" on the left, and a "Done" on the right.
> 
> Instead of "pushing" the UI, you should present your view controller in modal 
> mode.
> 
> Miguel
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to