Wednesday, 2 October 2013

Preventing user from switching TabItem + Nasty bug?

Preventing user from switching TabItem + Nasty bug?

I have some validation logic and a TabControl. I want to prevent the user
from switching tabs when the current one contains some error.
I have found some people asking the same and some people gave good answers
as you can see here.
TabControl- preventing user from changing the selected tab: MessageBox
causing bug
HOWEVER, as Fredrik Hedblad tell, when a MessageBox is shown while the
selection is being canceled, the whole thing breaks down. It experiences a
strange behavior. The event stops being raised (apparently) and if you
minimize and restore the Window, it suddenly raised without interacting!!
Can somebody shed some light on this? Thanks a lot!!!

No comments:

Post a Comment