摘要:
//注册事件PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame; //离开页面事件触发(如来电)if (frame != null){ frame.Obscured += new EventHandler<ObscuredEventArgs>(frame_Obscured); frame.Unobscured += new EventHandler(frame_Unobscured);} 阅读全文