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

Window.Visible property throws when window is closed #9524

Open
stevenbrix opened this issue Apr 9, 2024 · 1 comment
Open

Window.Visible property throws when window is closed #9524

stevenbrix opened this issue Apr 9, 2024 · 1 comment
Labels
area-Windowing area-XamlWindow bug Something isn't working team-Reach Issue for the Reach team

Comments

@stevenbrix
Copy link
Contributor

Describe the bug

it's strange that this API throws an exception when the window has been closed, i would expect it to just return false. and since there is no way to query that the window is in a state where it's closed, there is no way to check that the window is in an OK state to call it other than keeping separate app state around

Steps to reproduce the bug

  1. close a window
  2. after window has closed, check the Visible property

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.5.1: 1.5.240311000

Windows version

No response

Additional context

No response

@stevenbrix stevenbrix added the bug Something isn't working label Apr 9, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Apr 9, 2024
@HO-COOH
Copy link

HO-COOH commented Apr 10, 2024

since there is no way to query that the window is in a state where it's closed

Isn't there a Window.Closed event which you can handle?

@codendone codendone added team-Reach Issue for the Reach team area-XamlWindow area-Windowing and removed needs-triage Issue needs to be triaged by the area owners labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Windowing area-XamlWindow bug Something isn't working team-Reach Issue for the Reach team
Projects
None yet
Development

No branches or pull requests

3 participants