So I'm working in VS12 on Windows 8, and hacking the ContosoCookbook code to make a different app. I'm trying to set up a "MainMenu.xaml" page and in I have:
<CollectionViewSource
x:Name="groupedItemsViewSource"
Source="{Binding Groups}"
IsSourceGrouped="true"
ItemsPath="TopItems"
d:Source="{Binding AllGroups, Source={d:DesignInstance Type=data:FlashCardDataSource, IsDesignTimeCreatable=True}}"/>
The error I'm getting is: The name "FlashCardDataSource" does not exist in the namespace "using:FlashCards.Data".
...but I don't understand how it doesn't. Where do I start looking? I'm new at XAML.
-Ken
If nothing else is possible, comment the lines which use the namespace, rebuild, and then build the full project again.
I also tried rebuilding the project, reopening Visual Studio. Nothing helped. I finally commented xaml
, rebuilt the project, uncommented xaml
and it finally worked! Strange issue.
If cleaning and rebuilding does not help, try restarting Visual Studio. Worked for me.
Generally this error is caused by one of the following:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With