Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: Sharing user control between views

$
0
0
Ok, I found the issue. MEF was loading the child VM when the Shell did an ImportMany but my child view was being bound to the ViewModel by a cal:Bind:Model as well. By removing the cal:Bind:Model which I didn't need everything seems to work as expected.

I'm just left with the issue that the Publish event has two subscribers both listening to the same message type - both Handle the message but I'd them to only do so if the message was for them.

Regards
Alan

Viewing all articles
Browse latest Browse all 1760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>