Hi Stephen, I debugged Blend indeed, that's how I found out where the problem was. Unfortunately I don't know why, as the ModelTypeDescriptionProvider's method is called directly from Blend code so I can't really dig into that any more. :(
Regards, Adrian From: [email protected] [mailto:[email protected]] On Behalf Of Stephen Price Sent: Tuesday, March 23, 2010 9:22 AM To: ozWPF Subject: Re: MicroModels and design time Have you tried attaching Visual Studio to Blend and debugging the page to see why it's null? I've seen examples of making classes sense if they are in run time or design time (Silverlight and WPF) so that your page is "Blendable". cheers, Stephen (not Paul. Sorry ;) On Tue, Mar 23, 2010 at 3:01 PM, Adrian Hara <[email protected]<mailto:[email protected]>> wrote: Hi Paul & guys, I'm trying to make a MicroModel blendable, i.e. have a nice blend experience with some mock data and can't get it to work. My approach is to inherit from the actual view model with say a FooDesignTimeViewModel and populate it with some mock data. Then in xaml I use an ObjectDataProvider and the "d:DataContext" attribute to load it up at design time. However, I hit a brick wall in that when Blend calls the ModelTypeDescriptionProvider's GetTypeDescriptor method, the passed in "instance" is NULL. Is there some rule about type descriptors not working at design-time in blend or am I doing something wrong? Thanks, Adrian _______________________________________________ ozwpf mailing list [email protected]<mailto:[email protected]> http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf
_______________________________________________ ozwpf mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf
