c# - Windows Phone page navigation does not work -


i'm new in creating apps windows phone. i've got problem redirecting page. i've created blank page hyperlinkbuttonand in .cs file wrote this:

private void but_elf_click(object sender, routedeventargs e) {     this.frame.navigate(typeof(elfy)); } 

in xaml:

<hyperlinkbutton x:name="but_elf" content="elfy"       horizontalalignment="center" margin="100,125,100,255" grid.row="1"      verticalalignment="center" width="200" height="70" /> 

when launch app , click on button - nothing happens. there no errors, no messages. i've tried put navigateuri in button's property after pressing button (in launched app) message has shown: "you need install app task. search 1 in store?" after pressing "yes" app says: "sorry, no apps found".

how figure out problem? i'm creating app windows phone 8.1 in .net framework 4.5. help.

you missing reference 'click'-event handler. please change xaml this:

<hyperlinkbutton x:name="but_elf" content="elfy"   horizontalalignment="center" margin="100,125,100,255" grid.row="1"  verticalalignment="center" width="200" height="70" click="but_elf_click" /> 

please see:

c# documentation click on msdn

c# documentation hyperlinkbutton on msdn


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -