Windows Phone 7
[wp7] Back버튼 눌러도 아무런 반응 없게 하기
동동(이재동)
2011. 2. 23. 11:40
윈폰에서 Back버튼을 눌러도 아무것도 안하거나 특정 반응을 하고 싶게 할때가 있다.
back 버튼을 override받아서
그때는 그냥 e.Canle = true;로 하면 된다.
이런식으로
protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
{
if (dc.Content.IsDescriptionMode == true)
{
dc.Content.IsDescriptionMode = false;
e.Cancel = true;
}
}