Closing window does not set SelfModified ?

May 26, 2011 at 9:31 AM

Hello,

Is seems there's a difference in setting the SelfModified boolean when a window is closing:

If a valueline is changed, left with the tab button, and then the window is being closed a MsgBox appears saying the entity is changed.

if a valueline is changed and the window is being closed without first leaving the valueline, this MsgBox is not shown.

If you'd like I could give you a small project showing this behaviour.

 

With kind regards,

Marcel Numeijer.

 

Coordinator
May 27, 2011 at 8:35 AM
Edited May 27, 2011 at 8:35 AM

Fixed,

OnClosing was being triggered before the binding LostFocus UpdatesourceTrigger. 

I've fixed like this: http://www.netframeworkdev.com/windows-presentation-foundation-wpf/updatesourcetrigger-lostfocus-onclosing-problem-83042.shtml

Don't worry for now and it will be fixed in the next version I send to you. 

Cheers.

May 30, 2011 at 9:39 AM

Thanks