Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Can shell routes be deactivated? #41

Description

@munzili

I have a ShellView with 5 buttons at the bottom, and no sidebar is used. The main target is an Android UI.

On the starting page, the user needs to select some options. This data is required to display the other pages within the ShellView correctly.

Is it possible to use something like IsEnabled with a binding on the route, or hide the buttons?

By default, 2 Buttons/routes should be enabled and the other be deactivated. Just by make some changes in a combobox, the pages should be enabled.

Best regards

Activity

  1. OmidID commented on Sep 8, 2024

    @OmidID
    Contributor

    Hello @munzili

    Your problem is little blurry for me, I think this is related to your app logic not Shell or navigation system.

    If you need to enable or disable your button base on some condition, you need to do it in your app logic not disable or enable routes. basically routes in app should be affected and this is the best practices.

    Maybe you need to add or remove dynamically routes and then you need to use Registrar to do it. You can find Registrar in Navigator or from DI you can find INavigationRegistrar

    It help if you send screenshots and more clarify

    Thanks

  2. locked and limited conversation to collaborators on Sep 9, 2024
  3. converted this issue into a discussion #52 on Sep 9, 2024
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions