Skip to content

Conversation

@Koichi-Kobayashi
Copy link
Contributor

Pull request type

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

I was unable to resize the window from the top-left and top-right corners.

Issue Number: #972

What is the new behavior?

This enables users to resize windows by dragging from the top-left and
top-right corners of the title bar, even when title bar buttons are present.

  • Set WindowChrome ResizeBorderThickness top value to title bar height to allow resizing from the title bar area
  • Add priority resize detection for 10px square areas at top-left and top-right corners
  • Skip button hit testing when resize detection succeeds at corners to ensure proper resize behavior

Other information

2025-12-14_02h17_02.mp4

- Set WindowChrome ResizeBorderThickness top value to title bar height
  to allow resizing from the title bar area
- Add priority resize detection for 10px square areas at top-left and
  top-right corners
- Skip button hit testing when resize detection succeeds at corners
  to ensure proper resize behavior
@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. PR Pull request dotnet release titlebar Titlebar updates labels Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controls Changes to the appearance or logic of custom controls. dotnet PR Pull request release titlebar Titlebar updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant