tag:blogger.com,1999:blog-712077106443942647.post2749680669156909422..comments2024-02-28T00:15:48.501-08:00Comments on have fun: Design-time support for Caliburn.MicroMarcin Najderhttp://www.blogger.com/profile/11205707928830073432noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-712077106443942647.post-91958553902028784852012-02-03T00:42:35.432-08:002012-02-03T00:42:35.432-08:00This comment has been removed by the author.Marcin Najderhttps://www.blogger.com/profile/11205707928830073432noreply@blogger.comtag:blogger.com,1999:blog-712077106443942647.post-25313403324098370162012-02-03T00:42:11.874-08:002012-02-03T00:42:11.874-08:00I did simple test:
0. download sample code
1. ad...I did simple test:<br /><br />0. download sample code<br /><br />1. add new property called ContentControlTest to AddGameViewModel<br />public object ContentControlTest { get; set; }<br /><br />2. add ContentControl to AddGameView.xaml<br /><br /><br /><br />3. change sample data in AddGameViewModelSampleData.xaml file<br /><br /><br /> <br /> <br /> <br /><br /><br />4. because we are using sample data mechanism, we need to change Caliburn.Micro code responsible for searching Views for specified ViewModels ( AppBootstrapper class)<br /><br /> if (type == null && isDesignTimeType(modelType))<br /> {<br /> if (modelType.Name == "IndividualResultViewModel")<br /> {<br /> type = typeof(IndividualResultView);<br /> }<br /> else if (modelType.Name == "SearchViewModel")<br /> { <br /> type = typeof(SearchView);<br /> }<br /> } <br /><br />and this worked fine. I can publish full example if you want.<br /><br />The new version of Caliburn.Micro (1.3) has property called AtDesignTime so maybe you should try to use it instead of my implementation.Marcin Najderhttps://www.blogger.com/profile/11205707928830073432noreply@blogger.comtag:blogger.com,1999:blog-712077106443942647.post-8988110720848884922012-02-02T17:06:46.408-08:002012-02-02T17:06:46.408-08:00When I have < ContentControl x:Name="Posta...When I have < ContentControl x:Name="PostalAddress" /> where PostalAddress is an AddressViewModel with a corresponding AddressView it doesn't show up at design time. Is this a quirk of the content control?Peterhttps://www.blogger.com/profile/16961571377914786525noreply@blogger.comtag:blogger.com,1999:blog-712077106443942647.post-21270561368613474152011-11-19T12:58:53.291-08:002011-11-19T12:58:53.291-08:00Amazing! Many thanks!Amazing! Many thanks!Andreyhttps://www.blogger.com/profile/14271398640703295819noreply@blogger.comtag:blogger.com,1999:blog-712077106443942647.post-23784790706949357572011-09-15T19:33:19.454-07:002011-09-15T19:33:19.454-07:00This is awesome!This is awesome!Derekhttps://www.blogger.com/profile/09875125320006229476noreply@blogger.comtag:blogger.com,1999:blog-712077106443942647.post-44757740682594999912011-09-15T14:29:03.241-07:002011-09-15T14:29:03.241-07:00I think we will have to add this in the next relea...I think we will have to add this in the next release. Fantastic work!Anonymousnoreply@blogger.com