0
我在導航窗口中有一頁。我需要開火KeyDown事件,他們不會開火。我有這個:Page.keyDown未解僱
private void gamePlayerPage_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Right)
{
Animate newAnimate = new Animate(this.myMapController, this);
newAnimate.animation("right", this.myMinotaur);
}
}
它正確地連接起來。任何想法如何使它火?由於
嘗試處理'PreviewKeyDown'事件。 – Sheridan
謝謝。似乎沒有工作。是否有一些條件,例如需要某些設置才能使其工作的屬性? – user2602079
CoreWindow是一個WinRT類型,你爲什麼使用[wpf]標籤? –