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.

a winrt collectionview class filtering , sorting


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -