Well, for reasons of not complicating things further and make view model for the ModalDialog that is inside a MarkupControl, I’ve decided to work directly with the MarkupControl view model… nullifying it when needed (see Simple validation crashing on just one property (+other validation issues) on discussion about good practices when doing data validations with nested page sections; also this issue is a follow up of switching to nullifying the view models of the sections).
How I open the popup (popup means a MarkupControl containing a ModalDialog control and this arrangement has to stay like this otherwise again other complications and more code ):
When I try to open the popup, it crashes here, inside OperationInstance, with Context being null:
1: how do I make the Context available in this scenario?
2: what do I risk with this structural approach and is it problematic?