Questions tagged [window-chrome]
57 questions
19
votes
3 answers
WPF WindowChrome: Edges of maximized Window are out of the screen
I use WindowChrome to customize a Window. When I maximize the Window, then the edges are out of the screen. I use the following code to fix this:

Jotrius
- 647
- 4
- 19
13
votes
1 answer
WPF WindowChrome causing flickering on resize
I'm using WindowChrome to restyle my window in an easy fast way but the problem is there is flickering when resizing the window, especially when resizing from left to right.

HmH
- 389
- 3
- 14
12
votes
3 answers
Border Margin in Window template doesn't have any effect when used with WindowChrome
I was checking out the WindowChrome class in System.Windows.Shell library (v 3.5.41019.1). When I try to create a Window template, the margin of the Border element in the template seems to have no effect:

hattenn
- 4,371
- 9
- 41
- 80
10
votes
1 answer
How to use WindowChrome without Windows Aero glass effects in wpf, black border
I'm trying to customize a window border by using the WindowChrome class. Without Windows Aero glass effects. As expected I end up with a black boarder.
But i also end up without caption buttons
From Microsoft i learn that i can use the standard…

Cinaird
- 785
- 4
- 13
- 33
9
votes
2 answers
Show default window buttons on WPF Window using WindowChrome
I have found that using WindowChrome on a WPF Window can make me put content wherever I want in the Window, which is a great thought. Now I can finally make the title bar have the same color as the rest of my application.
However, I still like the…

TheHvidsten
- 4,028
- 3
- 29
- 62
8
votes
2 answers
WPF: Custom window, standard min/max/close buttons
I would like to create a custom WPF window (WindowStyle = None, AllowsTransparency = True). However, I would like the min/max/close buttons to look identical to those on standard windows. Is this possible?

anthony
- 40,424
- 5
- 55
- 128
8
votes
2 answers
Taskbar icon disappears when WindowChrome is used on Windows 8.1
I have some problems with an own styled WPF Window on Windows 8.1. I wrote a simple transparent WPF Window with a WindowChrome for default windows drag behaviors:

Thomas H.
- 83
- 4
5
votes
1 answer
Why does adding ContentControl cause my application to enter break mode?
Brief
I've created a beautiful WindowChrome style to apply to my windows. When I add ContentControl to my style, however, the application enters break mode.
I've pieced together code from this youtube video, this article, this SO question and…

ctwheels
- 21,901
- 9
- 42
- 77
5
votes
0 answers
TaskBar not shown when we set WindowChrome for Window
I set the system taskbar to autohide, then I ran the WPF application in Maximized state. When the application is in maximized state, I mouse hover the bottom of the screen to view the taskbar but it does not appear. Find the code block…

priyanga
- 61
- 2
5
votes
2 answers
How to enable window chrome by using C# code and not XAML?
So I am using the WPFShell to apply chrome to a custom window. I have learned from this article that in order to use it, I have to reference the Microsoft.Windows.Shell library and use this XAML code:
…

IneedHelp
- 1,630
- 1
- 27
- 58
4
votes
2 answers
How to hide Title bar in WPF Ribbon Window (Aero enabled) without hidden control box?
I currently use WPF Ribbon Window and enable Aero in current window like the following photo. I like to hide title that is "Pattern Tester" because there is not enough of space to show it. But I still need original windows control box and current…
user94893
4
votes
3 answers
WPF: Drop shadow on borderless window without custom chrome
Im struggling with drop shadow on WPF-windows with WindowStyle=None and ResizeMode=NoResize. Is there any good alternative to using a DropShadow-effect on the window-content? I have tried WindowChrome in Shell Integration Library but its not showing…

Andreas Zita
- 7,232
- 6
- 54
- 115
4
votes
1 answer
How to account for frame size when handling WM_GETMINMAXINFO
I have a WPF app that handles WM_GETMINMAXINFO in order to customize the Window chrome and still honor the system taskbar. That is, when you maximize the window on the monitor with the taskbar on it, it will not cover the taskbar. This works fine,…

cantloginfromwork
- 213
- 2
- 9
4
votes
2 answers
WindowChrome ResizeBorderThickness issue
I am styling a Window, but I noticed this strange behaviour of WindowChrome (in .NET FW 4.0, from external Microsoft.Windows.Shell dll).
I set the WindowChrome with AllowTransparency = true and WindowStyle = None.
If I set the WindowChrome's…

Sergio
- 2,078
- 3
- 24
- 41
3
votes
2 answers
Replicating standard system menu with WindowChrome?
When using WindowChrome (downloadable here) to customize the nonclient area of a window, a natural starting point is to make a title bar that looks and acts identical to a standard title bar. This requires adding a "fake" application icon and title…

Qwertie
- 16,354
- 20
- 105
- 148