microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.85k stars 323 forks source link

Widgets are not updated when they are not in the effective visible area #4595

Open michalleptuch opened 3 months ago

michalleptuch commented 3 months ago

Describe the bug

Hello, I created a widget that I want to update periodically from my app when the widget board is open (based on WidgetContext.IsActive property of widget instance). Unfortunately, when my widget is partially visible (and I need to scroll down to see entire widget), updating doesn't work. The same when the widget is not in effective visible area at all. Scrolling doesn't help in most cases, and I have to reopen widgets board or move my widget up to update it correctly.

Steps to reproduce the bug

  1. Create widget that is updated periodically from the background
  2. Pin widget on the edge of visible content of widget panel
  3. Wait for update

Expected behavior

Updated widget regardless of position and visibility

Screenshots

No response

NuGet package version

Windows App SDK 1.5.5: 1.5.240627000

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

Tested on following versions of MicrosoftWindows.Client.WebExperience:

524.13200.0.0 524.18000.0.0 524.19900.0.0