Skip to content

Navbar icon error when called navigationPage.PopToRootAsync() #27

Closed
@felagund18

Description

@felagund18

Hi,
In my app, there are two toolbar items in main navigationPage;

//App.cs
Nav = new NavigationPage (new PageHome ());
Nav.BarTextColor = Color.White;
Nav.ToolbarItems.Add (new ToolbarItem {
    Icon = "ic_action_toolbar_icon2.png",
    Command = new Command(new Action(() => {
        App.Nav.PopToRootAsync();
    })),
});
Nav.ToolbarItems.Add (new ToolbarItem {
    Icon = "ic_action_toolbar_icon3.png",
    Command = new Command(new Action(() => {
        var page = new PageDays();
        App.Nav.PopToRootAsync();
        App.Nav.PushAsync(page);
    })),
});
MainPage = new PageMaster ();

//PageMasterDetail.cs
Detail = App.Nav;
Master = new PageMenu ();

  1. App starts normally
    device-2015-06-27-003900
  2. Goes to Page1 by tapping second toolbarItem
    device-2015-06-27-003922
  3. When clicked first toolbarItem, it calls NavigationPage.PopToRootAsync() method and then icon should be "Sandwich" not an arrow, right?
    device-2015-06-27-003931

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions