Error when closing UXDialogBox using MVVM

1 reply. Last post: January 3, 2012 3:35 AM by Yudi
Tags :
  • (None)

Following your sample project  Contacts_MVVM, I have tried to reproduce the way you created and used dialog boxes.  After the result closes and it runs into the OnWindowClosed event there is an Application_UnhandledException that says "System.InvalidOperationException: Reference is not a valid visual DependencyObject."

Any idea what could be causing this?

 

All Replies

Yudi Member

I tried to reproduce the problem in my local tests by creating a simple page with UXButton to show dialog box but my efforts were not successful -- everything worked smoothly and the dialog box was accessed without any issues.

I’m willing to advise you further but in order to do so I would need you to elaborate on your specific scenario and possibly give me a step-by-step guide that I can use to observe the problematic behavior.

I enclose the xaml page and the view model class of my sample page as attachment. Should you find anything that I miss during my attempt to replicate the issue, please kindly let me know.

1 attachment
All times are GMT -5. The time now is 10:58 AM.
Previous Next