I am developing a WPF app using NetAdvantage for WPF. The XamDialogWindow is NOT displaying immediately upon executing the Show() method & then continuing with the next code stmt, but rather it displays after the code returns control to the CLR. The problem is that displaying the XamDialogWindow is the first action taken by the event handler with subsequent actions depending on the user's response, which is not possible given that the dialog window only appears after ALL event handling code has completed.
Am I missing something obvious or is there a workaround for my problem.
Thanks.
Hello,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post, but it seems like I am missing something about your scenario, so if this is still an issue for you, could you please send me an isolated sample project, where this is reproduced, so I can investigate it further for you.
Feel free to write me if you have further questions.
hi Stefan,
I'm having similar issue. I need to loop through couple of object and ask user if they want to keep it or destroy it. for this purpose i've used XamDialogWindow for popping up message and ask for user action.
Problem i'm facing is, once the windows pops up (in my case this.windowContainer.Children.Add(win)) it doesn't wait for it to be closed and reach to next code statement which is waiting for the result from the pop up window (in my case, win.DialogResult).
please note that "win" inherits XamDialogWindow and has customer template to display messages and take back action from user.
I don't know how to hold the process until user provides input on popup window. Please let me know what could be better way to handle this situation.
Thanks,
Tushar