Context: I am working on a windows phone game using XNA 4.0 framework. During the gameplay, if the user accidentally drags the top of screen, notification center gets dragged down.
I have seen few apps where this behaviour is overridden and instead of notification center popping up, a small cue is shown at the top as shown in the screenshot below.
Question: What is the API that stops notification center to come up when user accidentally drags the top of screen during gameplay?
Screenshot of what I want to achieve:
Same question asked on WP forum also but waiting for correct solution.
To hide the notification bar, you need to do two things:
You can set your application as full screen by changing the
FullScreen
property of your RootFrame. This can be done for instance in the App constructor, in the App.xaml.cs file:Then, you also have to hide the system tray on your pages, by setting the
SystemTray.IsVisible
property. This can be done either in the C# code or in the XAML: