我在Blend中显示设计时数据遇到了问题,以下是我的代码。
这是我的集合视图源代码:
<CollectionViewSource
x:Name="DataSource"
Source="{Binding Groups}"
IsSourceGrouped="true"
ItemsPath="Items"
d:Source="{Binding ItemGroups, Source={d:DesignInstance Type=data:SampleData, IsDesignTimeCreatable=True}}"/>
使用它的网格视图:
<GridView
x:Name="itemGridView"
ItemsSource="{Binding Source={StaticResource DataSource}}"
我的问题是我只能在VS11中看到设计时数据,但无法在Blend中看到。这是为什么?
谢谢。