Thought I'd check how others are displaying design time data. There are 2
ways that I go about it

1.
Just setting the design time datacontext to a sampledata.xaml file
<grid d:Datacontext={SamleData.Xaml}>


2.
Doing it similar to how Jordan shows in his presentations

View
ViewModel
Repository (Runtime, DesignTime, etc)
(RVVM)


The first option is nice and quick and easy to do, but it doesn't help you
unit test your ViewModel at all.
The 2nd option is good, but as far as I know depends on your ViewModel
loading the data in the constructor.

I am at a client where they load the data up as a seperate call, not in the
constructor. Any tips on how I could still use the repository pattern, but
still be able to load the data without anything in the constructor. Doesn't
seem possible to me.

-David Burela
_______________________________________________
ozsilverlight mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to