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

WindowExtensions.MinimizeToTray() method does not work #62

Closed
shv07 opened this issue Apr 8, 2022 · 0 comments
Closed

WindowExtensions.MinimizeToTray() method does not work #62

shv07 opened this issue Apr 8, 2022 · 0 comments

Comments

@shv07
Copy link

shv07 commented Apr 8, 2022

The above method does not cause any change to the app. Upon debugging I noticed that the window handle Hwnd is always IntPtr.Zero. I was able to to however make it work with the below code :-

.
.
Hwnd = ((MauiWinUIWindow)App.Current.Windows[0].Handler.PlatformView).WindowHandle;
.
.

Is it the correct way or am I missing something here? All my setup are according to the latest official docs.

@shv07 shv07 closed this as completed May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant