Skip to content

iOS handler issues #71

Closed
Closed

Description

@r-work

Description

Secondary toolbar item dissapears when navigating away from page.

To Reproduce

  1. Create a detail page with secondary toolbar item.
  2. Create another page (lets call it page 2) with two secondary toolbar items.
  3. Run app.
  4. Detail page toolbar item appears correctly.
  5. Navigate to page 2, toolbar items appear as text.
  6. Close page 2, (should go back to detail page) now toolbar item dissapears on detail page.

Evidence

No response

App Version

1.0

OS Version

17.6.1

Diagnostic information

No response

Activity

  1. added
    bug
    on Aug 26, 2024
  2. added
    triage pending
    on Aug 26, 2024
  3. d2dyno1 commented on Aug 28, 2024

    @d2dyno1
    Member

    Will look into it soon 👀

  4. added
    triage approved
    and removed
    triage pending
    on Aug 28, 2024
  5. d2dyno1 commented on Aug 28, 2024

    @d2dyno1
    Member

    After some research, I came to a conclusion that rolling out a custom ToolbarItems property on the inherited ContentPage would be better.

    1. More options when setting item icon beyond just ImageSource (a good point to be made can be MauiIcons that pull icons from the font file)
    2. Item states (like checked/unchecked, disabled, etc)
    3. Nesting of menu items, section splitters, section titles:
    iOS UIMenu Screenshot

    IMG_0108

    A good inspiration for the nesting of items would be to take from WinUI's MenuFlyoutItem* API. In terms of Android, a fallback could be used to the builtin ContentPage.ToolbarItems using OnPlatform (unless there's a specific need for more options. I currently haven't worked on porting it to Android)

    Let me know what you think @r-work

  6. r-work commented on Aug 28, 2024

    @r-work
    Author

    Sounds good if it's not a massive amount of work.
    Still hoping that MAUI team will be resolving the issue, though that might be a while.
    Thanks for all your work.

  7. r-work commented on Jul 24, 2025

    @r-work
    Author

    This has been implemented in MAUI 10.
    dotnet/maui#28185

  8. added
    resolved
    and removed
    triage approved
    on Jul 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugresolved

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions