microsoft / microsoft/WindowsAppSDK-Samples
Windows11 widget(adaptive card) cannot update widget page when the widget is exposed
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 1k
- Forks
- 335
- Avg merge
- 5d 1h
- Merged PRs (30d)
- 8
Description
Description:
I create a widget and implement a widget provider through https://learn.microsoft.com/en-us/windows/apps/develop/widgets/implement-widget-provider-cs .
When I expand the widgets board, my widget is partially exposed and partially not exposed. The widget cannot refresh the page. Even if I slide to make the widget fully exposed, the page still cannot refresh.
I found that this happens because deactivate method is called immediately after activate method, and then activate method will not be called again even if you slide it to fully expose. Is it improper to expose the widget but not trigger the activate method?
Taking the demo “Sample Counting Widget(C#)” in the github as an example, the widget host receives my click event but does not refresh the page(Numbers have not changed).
Contributor guide
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 linked Windows widget provider implementation guide and the Sample Counting Widget (C#) demo. Reproduce the partially exposed widget sequence and inspect the activate/deactivate and click-refresh behavior; done means the widget page refreshes after it becomes fully exposed and after the click event.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100