WindowsAppSDK-Samples icon indicating copy to clipboard operation
WindowsAppSDK-Samples copied to clipboard

Windows11 widget(adaptive card) cannot update widget page when the widget is exposed

Open kxyhjl opened this issue 1 year ago • 0 comments

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? widget 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).

kxyhjl avatar Jul 08 '24 08:07 kxyhjl