question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for Windows 11 "Snap Layout" to the custom title bar (WindowChrome)

See original GitHub issue

As Windows 11 introduce Snap Layout when we hover on Restore/Maximize caption button, I want to have this feature on my custom title bar using WindowChrome.

The current SystemCommands class does not have it:

public static class SystemCommands
{
  public static void CloseWindow(Window window);
  public static void MaximizeWindow(Window window);
  public static void MinimizeWindow(Window window);
  public static void RestoreWindow(Window window);
  public static void ShowSystemMenu(Window window, Point screenLocation);
}

Custom Title bar

image

Default Title bar

image

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:25
  • Comments:45 (18 by maintainers)

github_iconTop GitHub Comments

11reactions
meveycommented, Oct 12, 2021

Hey folks, Just letting you know that we are still working on this issue internally and will have a response for you soon. We appreciate your patience.

4reactions
pchaurasia14commented, Jun 21, 2022

@kalin-todorov - Apologies for the delayed response. Unfortunately, we don’t have the snap UI support for custom titlebar, yet.

However, we’re planning to incorporate this feature in upcoming releases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to support for Windows 11 "Snap Layout ...
This is the solution that I came up with in XAML only. Instead of having a Border that holds the content of the...
Read more >
Support snap layouts for desktop apps on Windows 11
Snap layouts are easily accessible by hovering the mouse over a window's maximize button or pressing Win + Z.
Read more >
How to create custom Snap layouts on Windows 11, 10
Create custom snap layouts on Windows 11 · Open PowerToys. · Click on FancyZones. · Turn on the Enable FancyZones toggle switch (if...
Read more >
Customized title bar is not supporting window 11 split ...
The main window of your application has the maximize caption button available but does not show snap layouts, it may be because you've ......
Read more >
Window Chrome - Actipro WPF Controls Docs
Snap layout menu support on Windows 11 or later; Optionally extend the window content itself, or just the background, to render in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found