locked
WPF Hands On Lab 09 RRS feed

  • Question

  • I'm trying to work my way through the WPF Hands on labs using the January CTP. I went through the exercise and everything worked until I tried the "add contact" menu item. The wizard works until you hit the finish button, at which point I get a NullReferenceException in the OnReturn processing for the page function.

    The version that I typed in and the provided source with the lab both seem to produce the same results so I'm pretty sure I followed the instructions correctly.

    Is the PageFunction related code just really dodgy in the January CTP or has anyone found a work-around that will get things going?

    Monday, January 30, 2006 8:20 PM

Answers

  • I finally figured out what the problem was.

    The Close() method was being called on the parent window hosting the pages from within an OnReturn callback. This is apparently a No-No in the January CTP bits. Hopefully, this will get fixed soon.

    Monday, January 30, 2006 8:50 PM