Return to site

Windows 10 transparent title bar

broken image

This means that click to drag works, along with double clicking to maximize/restore, shaking to minimize other windows, etc. The CaptionHeight tells the OS to treat the top 32px of your window as if it was a title bar. Next, allocate space for your title bar in your UI. That will remove the built-in title bar and allow you to do everything on your own. Building the UIįirst, set WindowStyle=”None” on your Window. It’s one little thing you lose when going with a full custom title bar, but it should be worth it by allowing full cohesive theming. I am choosing not to attempt to match the style for old versions of Windows, as I don’t think that would be a great time investment.

broken image

This will keep my UI consistent with the rest of Windows. However the actual implementation is kind of tricky, since it is now your job to provide a bunch of features that you used to get for free. There are several good reasons for wanting custom window chrome in WPF, such as fitting in additional UI or implementing a Dark theme.