Skip to content

Need an option to know which window is currently active in a multiwindow app #24711

@egvijayanand

Description

@egvijayanand

Description

Need an option, like IsActive, to find out which Window is currently active in a multiwindow app.

And it should dynamically get updated as soon as the Window change its state.

Public API Changes

var window = Application.Current?.Windows.FirstOrDefault(x => x.IsActive);

var page = await window?.Page?.DisplayAlert("Title", "Message", "OK");

Intended Use-Case

For example, this info is necessary to route dialogs on top of that window.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions