Skip to content

WPF window stops rendering when using a BitmapCache inside while another window is invisible #2158

@walterlv

Description

@walterlv
  • .NET Core Version: 3.0
  • Windows version: Windows 7/8/8.1/10 (Any Windows 10 versions including 10.0.18362.329)
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes

Problem description:
If a Window contains any UIElement with a BitmapCache and another window is hidden, the first Window will stop rendering in two different situations:

  1. Lock and unlock the screen
  2. Wait for a while (e.g. 10~30min)

Actual behavior:

See this animation below and you'll see that the window stops rendering after a locking and unlocking screen.

BitmapCache

Expected behavior:

The window should keep rendering.

Minimal repro:

  1. Make a window shown with a BitmapCache inside
  2. Show and hide another window
  3. Lock and unlock the screen
  4. Resize the first window to view the behavior

See this minimal reproduction repository below:

Metadata

Metadata

Labels

BugProduct bug (most likely)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions