c# - Grouped CollectionViewSource in windows 8 metro application -
is possible specify collectionviewsource element in xaml code of metro application as
<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> but vs says
error 3 member "groupdescriptions" not recognized or not accessible. according msdn collectionviewsource should have field. doing wrong?
here's doc page collectionviewsource winrt: http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.data.collectionviewsource.aspx
the groupdescriptions property not available in winrt
if remember correctly should work you:
<collectionviewsource x:name="groupedappointments" issourcegrouped="true" itemspath="thepropertythatisgroupedbydateofvisitgoeshere" d:source="{binding appointments, source={d:designinstance type=datamodel:sampledatasource, isdesigntimecreatable=true}}"> </collectionviewsource>
Comments
Post a Comment