Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do you put your design time view model in a separate assembly?
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COWhy don't you use xaml files with the DesignData build action? I have answered the question where I've explained how to use it correctly: http://stackoverflow.com/questions/5693283/binding-data-to-a-datagrid-on-design-time/5693532#5693532 , but the guy who asked the question wanted something other than design data in the Blend. And I wonder why everyone is so reluctant to use so easy approach.
      singulars
    2. COI don't use DesignData because my production view models are heavily constructor dependency injected. That means no default constructor so no creating from XAML. The VML locator pattern takes care of all this for me. Even if I'm missing something and it's possible to mix DesignData with a constructor injected VM, it still leaves the problem of extra code and resources in the production assemblies. So I'll turn your question around: if I use DesignData, how do I put the design resource dictionary in another assembly and get Blend to load it without having to ship that assembly?
      singulars
    3. COActually there is no such problems if to clear the property CustomTool (remove the MsBuild value). After that you will be able to define a model without the default constructor. And files with this action (DesignData instead of Page or Resource) will not be included in the final assembly. If you don't believe - you can try to open the assembly using some decompiler like reflector.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload