Skip to content

hc:Window cannot be resized if it starts with WindowState=Maximized and is then restored #246

Closed

Description

@CodingOctocat

Describe the bug

After testing, this issue occurs only in HandyControls: HandyOrg/HandyControl#1793

Steps to reproduce the bug

/

Expected behavior

No response

Screenshots

No response

NuGet package version

None

IDE

No response

Framework type

No response

Windows version

No response

Additional context

No response

Activity

  1. omid-io commented on Sep 5, 2026

    @omid-io
    Contributor

    Resolved via PR #248.

    The root cause was that \OnLoaded\ cleared \WindowChrome.ResizeBorderThickness\ to 0 when \WindowState == WindowState.Maximized, but subsequent state changes (restoring via title-bar drag, snap layouts, or system commands) did not re-apply the 6px resize border in \OnStateChanged.

    PR #248 invokes \ApplyWindowChrome(WindowState)\ on \OnStateChanged(EventArgs e)\ and respects \ResizeMode == ResizeMode.NoResize, restoring resize hit-testing and cursor affordances whenever restored to \Normal.

  2. added 2 commits that reference this issue on Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions