winrt xaml - Unknown member 'SortDescriptions' on element 'CollectionViewSource' -
this real newbie question. feel dumb have not figured out yet. trying add sort collectionviewsource in win 8 app.
<collectionviewsource x:name="itemsviewsource" x:key="cvs" source="{binding items}"> <collectionviewsource.sortdescriptions> <scm:sortdescription propertyname="pubdate" direction="ascending"/> </collectionviewsource.sortdescriptions> </collectionviewsource>
i have following namespaces declared: xmlns:scm="clr-namespace:system.componentmodel;assembly=windowsbase" xmlns:dat="clr-namespace:system.windows.data;assembly=presentationframework"
but error "unknown member 'sortdescriptions' on element 'collectionviewsource'" when try build. missing?
i believe collecitonviewsource in winrt not have sortdescription. may have order items instead.
this link might well.
Comments
Post a Comment