Skip to content

Shell.NavBarIsVisible does not update on hot reload on Android 8 #7459

@NoThrottle

Description

@NoThrottle

Description

Shall.NavBarIsVisible is a property that tells the ShellContent whether it should display the Navigation Bar. When you change this between true or false, the change is not immediately reflected. You can modify the Title property from "Home" to anything (e.g "homeawd") and the title will update, but any changes to the navbarisvisible property will still not be reflected.

For the changes to be reflected, you need to press restart in visual studio (as opposed to hot reload).

I have not tested this in other versions of android, or on other platforms.

Steps to Reproduce

  1. Create a New Project > .NET MAUI App
  2. Go to Solution Explorer and open AppShell.xaml
  3. Run an Android 8 emulator or connect an Android 8 running device.
  4. Run the app on said devices.
  5. Add Shell.NavBarIsVisible="False" under ShellContent
  6. Save

Nothing should happen to the app

  1. Change the Title property from "Home" to anything like "Hello".

It should update and you will see it since the navbar is still visible.

  1. Restart the app (Ctrl+Shift+F5 is the default)

Once it's done, you should see the changes to the NavBar be reflected.

Version with bug

Release Candidate 3 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 8 (API 26)

Did you find any workaround?

I just do a full restart instead of a hot reload to see the changes.

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

area-controls-shellShell Navigation, Routes, Tabs, Flyoutarea-toolingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debuggingfixed-in-8.0.0-rc.2.9373Look for this fix in 8.0.0-rc.2.9373!p/2Work that is important, but is currently not scheduled for releasepartner/hot-reload-xamlIssues impacting XAML Hot Reload experiencesplatform/androids/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions