7
Vote

NullReferenceException for modal window without a ParentLayoutRoot

description

The ParentLayoutRoot property is apparently only required for non-modal windows, yet when you don't define one for a modal window a NullReferenceException is thrown in the Close() method. I believe the offending line is FloatableWindow.cs, line 724.
 
The workaround is easy but the fix should be as well. I am currently just specifying 'new Canvas()' for the ParentLayoutRoot.

comments