public AskQuestionConfirmationView() { InitializeComponent(); Loaded += (sender, args) => { Deployment.Current.Dispatcher.BeginInvoke(() => { if (_page == null) { _page = this.FindParentOfType <PhoneApplicationPage>(); } if (_page != null) { _scrollViewer = _page.FindChildOfType <ScrollViewer>(); _page.BackKeyPress += ParentPage_OnBackKeyPressed; } ViewModel.PropertyChanged += OnViewModelPropertyChanged; }); }; Unloaded += (sender, args) => { ViewModel.PropertyChanged -= OnViewModelPropertyChanged; if (_page != null) { _page.BackKeyPress -= ParentPage_OnBackKeyPressed; } }; }