0

How can I remove top bar that says Project 1.

enter image description here

KirillC
  • 780
  • 2
  • 8
  • 21

2 Answers2

5

Try this first define style in stlye.xml

 //NoActionBar

<style name="AppTheme.NoActionBar">
    <item name="windowNoTitle">true</item>
    <item name="windowActionBar">false</item>
</style>

Than in mainfest file declare class style as below

    <activity
        android:name="youractivityName"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar"
        />
mehul chauhan
  • 1,792
  • 11
  • 26
0

If you are using new NavigationPage (new YourPage()) in the App class make sure to change it to new YourPage(). or if you are if you are getting to the page when an event is fired don't use it like this Navigation.PushAsync(new NavigationPage ( new YourPage()). instead use Navigation.PushAsync( new YourPage())

Dyary
  • 753
  • 7
  • 14
  • Or alternatively you can go to the XAML for the page in the first heading of your content page and set the NavigationPage.HasTitleBar to false. – Dyary Aug 27 '18 at 13:25