Set DataContext type for design-time in Xaml

             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:ignore="http://www.galasoft.ch/ignore"
             mc:Ignorable="ignore d" 
             ignore:DataContext="{d:DesignInstance Type=data:MyType, IsDesignTimeCreatable=True}"

Leave a Reply