dotnet / dotnet/wpf

Consider exposing an hwnd-scoped version of UpdateLayout

Open
#2,190 2 comments 0 reactions 0 assignees View on GitHub
Enhancement Requested
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Moved from [internal bug](https://devdiv.visualstudio.com/DevDiv/_workitems/edit/781867).

HwndTarget calls UpdateLayout while handling WM_RESIZE. It needs the updated layout for its window, but UpdateLayout deals with all windows on the thread. As we’ve seen, this can lead to undesirable re-entrancy. Why should a resize for one hwnd need to touch anything belonging to an unrelated hwnd?

Consider exposing an hwnd-scoped version of UpdateLayout.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.