C# windows 8 metro应用程序中的分组CollectionViewSource
我的metro应用程序的XAML代码中是否可以将CollectionViewSource元素指定为C# windows 8 metro应用程序中的分组CollectionViewSource,c#,wpf,windows-8,microsoft-metro,winrt-xaml,C#,Wpf,Windows 8,Microsoft Metro,Winrt Xaml,我的metro应用程序的XAML代码中是否可以将CollectionViewSource元素指定为 <CollectionViewSource x:Name="groupedAppointments" IsSourceGrouped="True" d:Source="{Binding Appointments, Source={d:DesignInstance Type=dataModel:SampleDa
<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>
根据CollectionViewSource,应具有此字段。
我做错了什么?这是用于winrt的CollectionViewSource的文档页面: GroupDescriptions属性在WinRT中不可用 如果我没记错的话,这应该对你有用:
<CollectionViewSource x:Name="groupedAppointments" IsSourceGrouped="True"
ItemsPath="ThePropertyThatIsGroupedByDateOfVisitGoesHere"
d:Source="{Binding Appointments,
Source={d:DesignInstance Type=dataModel:SampleDataSource,
IsDesignTimeCreatable=True}}">
</CollectionViewSource>
<CollectionViewSource x:Name="groupedAppointments" IsSourceGrouped="True"
ItemsPath="ThePropertyThatIsGroupedByDateOfVisitGoesHere"
d:Source="{Binding Appointments,
Source={d:DesignInstance Type=dataModel:SampleDataSource,
IsDesignTimeCreatable=True}}">
</CollectionViewSource>