Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable downlevel dragging of custom titlebar by adding Win 10 compatibility to the app manifest #1090

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

bpulliam
Copy link
Contributor

@bpulliam bpulliam commented Oct 4, 2022

Description

We are using WS_EX_LAYERED for the drag area of the title bar and it is created as a child window.
When a compability section is left out of the manifest, CreateWindow cannot create a child window with that attribute and the result is that you cannot drag using the title bar. The GUID used here is for Windows 10.

Adding this section to the manifest of your app will fix the issue.

Motivation and Context

This fixes the issue where the WinUI custom titlebar is not draggable.

How Has This Been Tested?

Manual testing

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@bpulliam bpulliam merged commit 03cf200 into microsoft:main Oct 4, 2022
@bpulliam bpulliam deleted the user/bpulliam/manifest branch October 4, 2022 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants