WPF: Custom window, standard min/max/close buttons
Asked Answered
T

2

8

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?

Tjaden answered 28/2, 2011 at 21:46 Comment(2)
You mean standard according to the current system theme? (Aero, classic etc.)Deangelis
exactly. i'd like them to be drawn exactly like they would be using the current system theme.Tjaden
K
5

You might want to have a look at GlassWindow in FluidKit at CodePlex
http://fluidkit.codeplex.com/

The source code has a custom Window Style looking like this. It's pretty easy to modify to however you want it to look. I've used it once and it works good

enter image description here

Karleenkarlen answered 28/2, 2011 at 21:59 Comment(0)
T
2

You'll need to "draw" them yourself, since you're using WindowStyle=None. When choosing this option, you'll need to render your own Chrome as desired.

Time answered 28/2, 2011 at 21:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.