When I’m making a new Visual Studio Windows 8 Store Project (C#), I get dummy data if I start off With a SplitPage, however, if I’m adding new SplitPages to the Project, there’s no dummy data coming With it, and I just get a ton of errors if I try the code from the main SplitPage (the one created when I made the actual Project).
How can I get dummy data in the “new added” SplitPages, not only in the main Project file?
You can do it manually. You can use
ExampleDataSourceclasses which you can find in any example.Then in XAML code, when you describe
CollectionViewSourceinPage.Resourcesyou usually bind data-source in way like:Here you use
Sourceparameter to specify binding. Now use parameterd:Source. Namespacedis used for describing things, which will be used only in designer (that’s why it isd, I believe).So try adding this parameter to your
CollectionViewSource:Assuming that
SampleDataSourcehas propertyAllGroupsand it isObservableCollection, it should work.Hope my answer helps anyone dealing with Win8 apps.