c# - Open a portrait page from Pivot Page Listbox with "LineThree" text in it -


as title says... if start app project pivot page(mainpage.xaml) , choose click example "design two" link in databinded listbox. possible bind "linethree" text "design two" link in separate portrait page?

do have make new portrait page every "linethree"-link? or can generate "mainviewmodelsampledata.xaml" data single portrait page depending on "lineone"-link click in pivot page in start?

hope question understandable... :p

if understand correctly, want have main page contains list of data, , details page contents dependent on item clicked in main page. answer question "yes". there number of ways achieve this, of include global variables, custom navigation service, storing value in isolated storage , on. personal preference use context of navigationservice , pass id or index in query string target page.

your call navigate details page looks this:

application.current.navigate(string.format("/views/detailsview.xaml?id={0}", id));

in target page, override onnavigatedto handler retrieve value passed , process accordingly (i.e. value database, or retrieve data collection).

protected override void onnavigatedto(navigationeventargs e) {     if (this.navigationcontext.querystring.containskey("id"))     {         var id = this.navigationcontext.querystring["id"];         // todo: need id.     }     else     {         // use condition handle creating new items.     } }

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -