CollectionViewSource Development Time, Blend, and Windows 8

I have a problem showing Time Design data in a blend here my code is This is my collection view source:

<CollectionViewSource x:Name="DataSource" Source="{Binding Groups}" IsSourceGrouped="true" ItemsPath="Items" d:Source="{Binding ItemGroups, Source={d:DesignInstance Type=data:SampleData, IsDesignTimeCreatable=True}}"/> 

And the kind of grid that uses it:

 <GridView x:Name="itemGridView" ItemsSource="{Binding Source={StaticResource DataSource}}" 

My problem is that I only see development time data in VS11, but not in Blend. Why is this?

thanks

+7
source share
1 answer

The answer depends on how you create your development time data. Seems like you used ViewModel? If so, check at what point you create it. for example, do you create it as an element in your XAML or create it in the view constructor?

Indeed, there should be no difference in what you see during development in Visual Studio compared to what you see during development in Expression Blend. If so, you may need to perform a clean one and rebuild the project in one of the programs. If the problem still persists, try closing Blend and reopening it.

+2
source

All Articles