A Place For My Thoughts, Technical Activities & Dev Stuff


UWP: Things Required To Do Right After Creation of New Project.


Microsoft Visual Studio really supports you during the App development. It provides you lot of facilities and easiness in the form of pre-defined required code, Intellisense and important files that makes the developers life so much easier than ever before.

Perhaps there are few things which you might want to do right after creation of new project.

Pick the Right Template

When you create the project then even at the time of project creation Visual Studio provides you lot of templates so you can pick up the right project type for you that will help to fully concentrate upon your project.

Choose the Target Versions

After you choose the project template and click OK, Visual Studio will ask you for target platform versions. Here you can choose the Maximum and Minimum Target Version which I recommend is to choose the latest target version in “Target Version” and choose the earliest target version in “Minimum Version”. That will allow you to target all the target versions of UWP Platforms.

Perhaps its upon you, choose whatever your requirement is. If you are want to target a specific build, then choose accordingly…

Then after you choose the Target Versions, Visual Studio will create lot of stuff for you so you can now directly focus upon your app goal…


Now the first thing which you should do is change the EnableFrameRateCounter = false. Basically the Frame Rate Counter really disturb while testing your app.

So to remove that counter, simply change it from true to false.

So that’s how you can get yourself free from that ugly counter…

Change the Splash Screen

The next thing you should do is to replace that default splash screen and other icons from Assets folder…

So for that, simply open Package.appxmanifest file from the Solution Explorer. Here you can fully customize your app.

So from here you can customize your all basic visual assets;

But to customize assets you need to care about parameters and size etc…

That will make your app cool from the beginning and keep your interest to play with stuff…

Add a Back Button

Next thing you should do is to add Back Button in your app if required. Most of the apps which you develop might require go back to previous frame or in common term, previous page.

So for that, simply add the following code in to your App.xaml.cs file to your OnLaunched event handler.

rootFrame.Navigated += RootFrame_Navigated;

// Register a handler for BackRequested events and set the 

// visibility of the Back button 

SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested; 

SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = rootFrame.CanGoBack ?  AppViewBackButtonVisibility.Visible : AppViewBackButtonVisibility.Collapsed;

Now simply defined the methods which we declared above;

private void RootFrame_Navigated(object sender, NavigationEventArgs e) 

    // Each time a navigation event occurs, update the Back button’s visibility 

    SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = 

        ((Frame)sender).CanGoBack ? 

        AppViewBackButtonVisibility.Visible : 


private void OnBackRequested(object sender, BackRequestedEventArgs e) 

    Frame rootFrame = Window.Current.Content as Frame; 

      if (rootFrame.CanGoBack) 


        e.Handled = true; 



And there you go… So whenever you go to next frame in your app it will add back button on the top bar in Desktop version. In Mobile, the back button will navigate you to previous frame…

Default Page

Another thing which you might want to do is to make make your own default page for your app rather than MainPage.xaml And for that simply add new page and named it whatever you like.

Now from App.xaml.cs simply change the root frame navigation from MainPage to your own default page (In this case justSajid.xaml).

And now you may simply delete your MainPage.xaml from solution explorer.


Hope that will help you to JumpStart into your project whenever you are going to develop an Idea into app…


In order to get a best hands-on experience along with the Blog. Try out the code either By MSDN Code Samples or By GitHub.

Evangelist | Cognitive Data Scientist | Watson Application Developer | Deep Learning Developer | Cloud Certified | IBM Recognized Speaker | Debater | IBM Mentor | Blogger | Guinness World Record Holder | IBM Community Activist | Aspiring to Inspire.

Warning: Invalid argument supplied for foreach() in D:\home\site\wwwroot\wp-includes\translations.php on line 1445


  1. When the team was losing, all we heard about was how it was W-L that mattered, whether Alex played well or poorly. Now that they and HE are winning, we get the asinine “game manager” crap as if he’s a fucking bystander.on the sidelines. As much as Harbaugh has helped Alex, Alex has made Harbaugh’s style work- and make no mistake- they’re not playing *down* to Smith,they’re playing how Harbaugh likes it. He may not have the perfect QB for his style- but damn close. Ball security- but make the plays when we need them.

  2. Congratulations on owning among essentially the most sophisticated weblogs Ive occur across in some time! Its just incredible the amount you may take away from a little something only mainly because of how visually stunning it truly is. Youve place jointly a fantastic website area terrific graphics, videos, layout. This really is definitely a must-see website!

  3. Some bulletin board/discussion forum people can use the pseudonym opportunities of such platforms to get into flame wars – I withdrew from participation in the “Building” forum for several months after repeated trolling (see my post . While some users use their own name or – like me, openly link to a blog, website and/or Twitter ID with my real details freely available – others clearly feel it is perfectly OK to abuse well-meaning contributors hidden by the cloak of anonymity. It’s not nice and it’s not clever.

  4. So “slaughtered” is an unbiased neutral word? Why do we continue to make excuses for incompetence, apathy, and outright lies? Why do we use “alledgedly” when there are witnesses to someone shooting several people in a courtroom Atlanta GA?I guess all those reports of alien abductions must be accurate reporting and newsworthy since “they say” it happened…Give me a break. Make people accountable and quit coddling them.

  5. “My husband and i felt very glad Michael could round up his basic research using the ideas he made while using the web site. It’s not at all simplistic just to happen to be releasing thoughts that many people might have been trying to sell. And now we already know we have got the website owner to appreciate for that. The specific explanations you made, the easy blog menu, the friendships you give support to create – it’s everything awesome, and it is helping our son and our family reckon that this content is excellent, and that is rather pressing. Many thanks for all the pieces!”

Leave a Reply

Your email address will not be published.


Latest from Development

Go to Top