-4

I am trying to make Snake, but have a problem with the controls. I made an application with few pages and can't add KeyDown to the page where the game starts. KeyDown works well when I add it to PageSwitcher.xaml

Here is my code:

https://github.com/Zibann/LastTry

ProgrammingDude
  • 597
  • 1
  • 5
  • 25

1 Answers1

2

Team Explorer -> Changes -> then look for untracked files, right click and select add. Sometimes (I'm not sure when) the new files you add are not tracked by default.

enter image description here

bto.rdz
  • 6,636
  • 4
  • 35
  • 52
  • @KrzysztofUrbańczyk I would like tou help you with the other question but I dont understand it – bto.rdz Nov 12 '15 at 18:45
  • I don't know how add control to arrows, make method Window_KeyDown in Singleplayer.xaml.cs and add KeyDown="Window_KeyDown" in Singleplayer.xaml but this dosen't work. – Krzysztof Urbańczyk Nov 12 '15 at 18:54
  • ok i find answer here: http://stackoverflow.com/questions/347724/how-can-i-capture-keydown-event-on-a-wpf-page-or-usercontrol-object – Krzysztof Urbańczyk Nov 12 '15 at 20:20