Skip to content

Instantly share code, notes, and snippets.

@bogdanbujdea
Created January 28, 2014 22:34
Show Gist options
  • Save bogdanbujdea/8677997 to your computer and use it in GitHub Desktop.
Save bogdanbujdea/8677997 to your computer and use it in GitHub Desktop.
Clean App.xaml.cs file for Windows Phone 8
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