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]>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]
> http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf
>
>
_______________________________________________
ozwpf mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf

Reply via email to