Requirements for Silverlight DesignTime Data in Blend 4

Requirements for Silverlight DesignTime Data in Blend 4

Old forum URL: forums.lhotka.net/forums/t/10409.aspx


Jack posted on Thursday, June 02, 2011

Just wondering if there are a set of guidelines on how to make sure my BO are available / useable in Blend.  I started trying and found I was getting all sorts of different errors with different objects including ViewModel. 

I'm still using 3.8.x and would take the plunge to 4.x if that helps fix the issues.

I'm getting errors such as can't create my childBO (reflection errors) where the childBo is a property of the main BORoot

Most of my BO's are exposed via my implementation of MyViewModel<T> : ViewModel<T>  etc.

as well as this pops up all the time:

Could not load the assembly AlexanderGracie.Library because the following errors occured:

Could not load type 'Csla.DataPortalClient.WcfProxy'1 from assembly 'Csla, Version=3.8.2.0, ....

Could not load type 'Csla.Silverlight.ViewModel'1 from assembly 'Csla, Version=3.8.2.0,...

Thanks

Jack

RockfordLhotka replied on Thursday, June 02, 2011

Your viewmodel code (typically in the constructors) should check to see if the appliation is running at design time. If so, it shouldn't try to create the model.

Alternately, you can use XAML markup to provide mock data for use at design time, instead of using the actual data source.

Or both.

Copyright (c) Marimer LLC