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

New Post: Office 2013 Actions Pane and Caliburn Micro

$
0
0
I finally got something to work by doing the following.

1) Keep the new MefBootstrapper().Start() in the ActionsPane Load event - without the call to the Start method none of the bootstrapper methods are called.
2) You don't need the the windowManager stuff and it doesn't work unless you use ShowPopup.
3) Drop an instance of your root visual (in my case ShellView) onto the designer in Visual Studio and it will automatically get wrapped in an ElementHost
4) If you run the code now, you will notice that the ShellView and ShellViewModel do not get hooked together - the only way I could get it to work was to add a cal:Bind:Model line to the ShellView.xaml file.

This now works and all the other Caliburn Micro features like event aggregation work normally.
I hope this helps anyone else stuck on this problem and if there is another way to hook the ShellView and ShellViewModel together with the non-generic bootstrapper then I would love to know.

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>