I used the code below to hide the status bar in UWP. When I run the application in development mode on my computer, the status bar does not appear on the Windows phone. I deployed the application in the Windows Store, after loading the application, I see that the status bar is displayed in my application.
Here is my code:
var isAvailable = Windows.Foundation.Metadata.ApiInformation.IsTypePresent(typeof(StatusBar).ToString()); if (isAvailable) hideBar(); async void hideBar() { StatusBar bar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView(); await bar.HideAsync(); }
The question is, why should the above code not work in the Windows store? In addition, I have a link to my application, a link to the application in the Windows repository, but when I search for the exact keyword in the windows of the repository, my application does not appear in the Windows repository, but when I click on the link my application in the window repository will appear.
Thanks!
windows-10 uwp windows-10-mobile
Arh
source share