microsoft / microsoft/WindowsAppSDK

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

Open
#4,595 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Widgets
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

### 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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names WidgetContext.IsActive and Windows App SDK 1.5.5 but no source file or test. Start by reproducing the partial-visibility case with a periodically updated widget, then compare behavior while scrolling and reopening the widget board. Done means updates occur regardless of the widget's position or effective visibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.