#19431·Avalonia

Window Fails to Restore ClientSize When Transitioning from Maximized to Normal State

Author: simpleway2016Created Aug 10, 2025Updated Sep 17, 2026
Labelsbug

Describe the bug

When a window changes from maximized state to Normal state, it fails to restore the ClientSize of the Normal state.

To Reproduce

This triggers the Resize event twice:

First trigger: The Reason is Unspecified, and the ClientSize value correctly reflects the previous Normal state’s ClientSize. Second trigger: The Reason is Layout, but the ClientSize value becomes abnormally large, approximately matching the ClientSize during the maximized state

Expected behavior

No response

Avalonia version

11.3.3

OS

Windows

Additional context

No response