【发布时间】:2014-03-18 14:49:43
【问题描述】:
是否可以在我的 Metro 应用程序的 XAML 代码中将 CollectionViewSource 元素指定为
<CollectionViewSource x:Name="groupedAppointments" IsSourceGrouped="True"
d:Source="{Binding Appointments,
Source={d:DesignInstance Type=dataModel:SampleDataSource,
IsDesignTimeCreatable=True}}">
<CollectionViewSource.GroupDescriptions>
<PropertyGroupDescription PropertyName="@DateOfVisit" />
</CollectionViewSource.GroupDescriptions>
</CollectionViewSource>
但是VS说
Error 3 The member "GroupDescriptions" is not recognized or is not accessible.
根据msdnCollectionViewSource 应该有这个字段。 我做错了什么?
【问题讨论】:
标签: c# wpf windows-8 microsoft-metro winrt-xaml