Set d:DataContext to an internal class of another assembly
问题 Consider the following scenario: WPF view: d:DataContext="{d:DesignInstance vm:DesignViewModel, IsDesignTimeCreatable=True}" ViewModel is located in a separate c# project: internal class DesignViewModel : ViewModel { /* create demo data in ctor */ } ViewModel has this entry in AssemblyInfo: [assembly: InternalsVisibleTo("WPF.Demo.View")] Error message in XAML Designer: The name "DesignViewModel" does not exist in the namespace "WPF.Demo.View". Observations: Everything works fine if I make