microsoft / microsoft/WindowsAppSDK
DisplayAreaWatcher's updated event cannot be triggered
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 4.7k
- Forks
- 471
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 28
Description
### Describe the bug
`DisplayAreaWatcher.Updated` event can occur when the configuration of a `DisplayArea` has changed. If I understand it correctly, the change can include the work area's size changed when the display settings are changed or even when the taskbar is automatically hidden. However, no luck,
### Steps to reproduce the bug
For a simple project with a main window and a main page, add in an event like page_OnLoaded:
```C#
# windowId: WindowId object
var displayAreaWatcher = DisplayArea.CreateWatcher();
displayAreaWatcher .Updated += (watcher, args) =>
{
throw new NotImplementedException();
};
displayAreaWatcher .Start();
```
### Expected behavior
_No response_
### Screenshots
_No response_
### NuGet package version
Windows App SDK 1.2.1: 1.2.221116.1
### Packaging type
Packaged (MSIX)
### Windows version
Windows 11 version 22H2 (22621, 2022 Update)
### IDE
Visual Studio 2022
### Additional context
_No response_
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 with the DisplayArea.CreateWatcher entry point in a packaged Windows App SDK 1.2.1 app, using the page_OnLoaded reproduction on Windows 11 22H2. Trigger display-setting and automatic-taskbar-hiding changes and verify whether DisplayAreaWatcher.Updated fires; document the observed behavior and determine the relevant fix or limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100