microsoft / microsoft/WindowsAppSDK
The AppWindow class should have a Close method and a Closed event
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 4.7k
- Forks
- 471
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 28
Description
The ```AppWindow``` class should have a ```Close``` method and a ```Closed``` event
##### ------------------------
```AppWindow``` 应该提供 ```Close``` 方法和 ```Closed``` 事件
------------------------
```WinUI 3``` 的 ```Window 类``` 包装了 ```Closed``` 事件和 ```Close``` 方法,但是对应的 ```AppWindow``` 类却只有 ```Destory``` 方法,该方法不会触发 ```Closing``` 事件,不利于在关闭窗口的时候做一些其他操作(比如弹出对话框提示等等),所以 ```AppWindow``` 应该包含 ```Window``` 类的一些方法,```Close``` 方法和 ```Closed``` 事件
##### ------------------------
```WinUI 3``` 的 ```Window``` 类包装了 ```Closed``` 事件和 ```Close``` 方法,但是对应的 ```AppWindow``` 类却只有 ```Destory``` 方法,该方法不会触发 ```Closing``` 事件,不利于在关闭窗口的时候做一些其他操作(比如弹出对话框提示等等),所以 ```AppWindow``` 应该包含 ```Window``` 类的一些方法,```Close``` 方法和 ```Closed``` 事件

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the AppWindow implementation and the existing Destroy and Closing behavior, then compare the corresponding WinUI 3 Window APIs. Trace how AppWindow lifecycle events are exposed and identify the relevant tests or samples. Done means AppWindow provides Close and Closed behavior consistent with the requested Window API, including coverage for the close flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100