I'm developing a UWP app with Visual Studio 2015, and one of the things I want to do use some sample data at design time.
Now, I've added a XAML file, set the build action as DesignDataWithDesignTimeCrateableTypes
My XAML is really straight forward here:
<local:Freead
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:MyNamespace.Uwp.Windows.ViewModels"
xmlns:ad="clr-namespace:MyNamespace.Classifieds;assembly=LocalAngle.Uwp"
ItemName="Java books"
Description="Free to anyone that wants them. A little out of date, but would make a handy doorstop."
ContactDetails="01632 960000"
Latitude="52.22" Longitude="1.95">
</local:Freead>
However, the intellisense is giving me pale blue wavy line and a tooltip for that of:
Cannot create instance of "Freead".
Historically, I've been able to debug the XAML design issues by firing up another instance of Visual Studio, attaching, and setting to break on all exceptions, but no exceptions appear to be thrown here, so how can I debug why it cannot create an instance of the type? (Given the obvious has already been checked, i.e. there is a parameterless constructor, and solution does build)