Created
January 28, 2014 22:34
-
-
Save bogdanbujdea/8677997 to your computer and use it in GitHub Desktop.
Clean App.xaml.cs file for Windows Phone 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace BudgetPlanner.WP8 | |
{ | |
using System.Diagnostics; | |
using Microsoft.Phone.Shell; | |
using Microsoft.Phone.Controls; | |
public partial class App | |
{ | |
public static PhoneApplicationFrame RootFrame { get; private set; } | |
public App() | |
{ | |
InitializeComponent(); | |
if ( Debugger.IsAttached ) | |
{ | |
Current.Host.Settings.EnableFrameRateCounter = true; | |
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment