Hi,
You are right, the current implementation of the IPopupWindowActionAware interface forces your Notification object to have a Window , which is not MVVM friendly as it would make it more difficult to test. In fact, I have already received comments about this in my blog post.
What you are describing about modifying the IPopupWindowActionAware to receive an IWindow seems to be a good approach to solve this. Based on my understanding, you will also need to modify the PopupWindowAction to instantiate a window that implements the IWindow interface and pass it to the corresponding Notification object when needed.
Thanks,
Damian Cherubini
http://blogs.southworks.net/dcherubini
You are right, the current implementation of the IPopupWindowActionAware interface forces your Notification object to have a Window , which is not MVVM friendly as it would make it more difficult to test. In fact, I have already received comments about this in my blog post.
What you are describing about modifying the IPopupWindowActionAware to receive an IWindow seems to be a good approach to solve this. Based on my understanding, you will also need to modify the PopupWindowAction to instantiate a window that implements the IWindow interface and pass it to the corresponding Notification object when needed.
Thanks,
Damian Cherubini
http://blogs.southworks.net/dcherubini