windows store apps - WinRT MVVM Search Contract -


i'm using caliburn-micro build windows store app, can't seem find example on how implement search contract using library.

how can this?

any appreciated.

thanks.

nigel compileexperience.com pointed out me caliburn micro has sample search implemented. searching here's solution:

on app.xaml.cs file, add following method:

protected override void onsearchactivated(searchactivatedeventargs args) {     displayrootview<searchview>(args.querytext); } 

where searchview xaml created view displaying results. also, on configure method (still on app.xaml.cs) don't forget register searchviewmodel on container.

create searchviewmodel parameter property. have query string when search. , voilá. it's done. implement or call proper search method on viewmodel.

you can see sample on caliburn micro code, here.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -