WPF - Have a list source defined at runtime but still have sample data for design time
Posted
by Vaccano
on Stack Overflow
See other posts from Stack Overflow
or by Vaccano
Published on 2010-01-29T03:04:06Z
Indexed on
2010/03/31
20:23 UTC
Read the original article
Hit count: 572
I have some ListBoxes in my WPF app. I would like to be able to view how the design looks with out having to run the app.
But I still want to be able to bind to ItemsSource to my View Model.
I know I saw a blog post on how to do this, but I cannot seem to find it now.
To reiterate, I want dummy data at design time, but real data at run time and not break the MVVM pattern.
Any ideas?
© Stack Overflow or respective owner