Multi-window Windows application - How do I find out which window i am currently on? #14547
Unanswered
lvendramini
asked this question in
Q&A
Replies: 1 comment
-
//Get default windows App.Current.CloseWindow(window); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to see which window of a multi-window application i am on. Microsoft documentation
https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/windows?view=net-maui-7.0#multi-window-support
gives the example
// Close a specific window
Application.Current.CloseWindow(secondWindow);
// Close the active window
Application.Current.CloseWindow(GetParentWindow());
But i can't get GetParentWindow() to work. Is there a way to see which window the user is interacting with?
Beta Was this translation helpful? Give feedback.
All reactions