Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] PageStackNavController: events that trigger when pushing a page to an empty stack or when stack is cleared #2276

Open
capdiem opened this issue Dec 11, 2024 · 0 comments
Labels

Comments

@capdiem
Copy link
Contributor

capdiem commented Dec 11, 2024

Proposal and motivation

We would like an event that triggers when the first page is pushed onto the stack and when the last page is removed from the stack (including when the stack is cleared), so that we can update the state of the returned tab.

Additional context

public class StackChangedEventArgs: EventArgs {
    public int Count { get; set; } // latest length of stack
    public string Action { get; set; } // push,pop,clear?
    public string AbsolutePath { get; set; }
}

public EventHandler<StackChangedEventArgs>? StackChanged;

PageStackNavController.StackChanged += OnPageStackNavControllerStackChanged;
@capdiem capdiem added the type/enhancement New feature or request label Dec 11, 2024
@capdiem capdiem added this to the 1.9.0 Planning milestone Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant