From 9f496aad8cf387b69a301eae38d58b59713c2749 Mon Sep 17 00:00:00 2001 From: chylex <info@chylex.com> Date: Fri, 1 May 2015 21:42:54 +0200 Subject: [PATCH] Disabled Frame shortcuts and sounds --- BackupEssentials/MainWindow.xaml.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BackupEssentials/MainWindow.xaml.cs b/BackupEssentials/MainWindow.xaml.cs index 12cbdba..397cb7b 100644 --- a/BackupEssentials/MainWindow.xaml.cs +++ b/BackupEssentials/MainWindow.xaml.cs @@ -29,6 +29,8 @@ namespace BackupEssentials{ public MainWindow(SplashScreen splashScreen){ InitializeComponent(); Instance = this; + + ContentFrame.Navigated += (sender2, args2) => { ContentFrame.NavigationService.RemoveBackEntry(); }; Loaded += (sender, args) => { if (splashScreen != null)splashScreen.Close(new TimeSpan()); @@ -141,8 +143,7 @@ namespace BackupEssentials{ if (switchHandler != null && switchHandler.OnSwitch())return false; Page page = null; - ContentFrame.Navigate(pageType == null ? null : page = AppPageManager.GetPage(pageType)); - if (ContentFrame.NavigationService.CanGoBack)ContentFrame.NavigationService.RemoveBackEntry(); + ContentFrame.Content = pageType == null ? null : page = AppPageManager.GetPage(pageType); IPageShowData pageDataHandler = page as IPageShowData; if (pageDataHandler != null && data != IgnoreShowData)pageDataHandler.OnShow(data);