blendability

Blendability with d:DataContext. What am I missing?

余生长醉 提交于 2020-01-03 15:30:29
问题 I feel as though I still see a lot of guidance and advice stating that a view-first approach is the best way to go to get Blendability in your application. However, with d:DataContext, d:DesignData and d:DesignInstance, isn't the problem of Blendability easy to solve regardless of how your views and viewmodels are wired together? With DesignInstance, you simply pick a concrete ViewModel type to be used in the designer, and it's as if you've got view-first composition. In fact, using

can anyone think of why using this particular class in a design time data source will break all design time bindings?

微笑、不失礼 提交于 2019-12-11 19:23:23
问题 I generated this class using SQLMetal.exe. It is very bindable at runtime, but if I use this class at design time, all of my design time blend bindings are busted. I am using the MVVM-Light framework and I am building an app for WP7. If I extract an interface for this class, and create a simple POCO that implements this interface and I use my simple poco in my design time data source, all of the bindings come alive. Here is the class that was generated by SQLMetal.exe. [Table(Name=