protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { if (ContentFocused && !ServiceLocator.Current.GetInstance<ISettingsService>().OnlyFlipViewImages) { e.Cancel = true; DefocusContent(); } else base.OnBackKeyPress(e); }