Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF: How to make native windows control button with custom window?

Tags:

c#

wpf

I had to change the color and icon of the title bar, so I used custom window. But in this way, I have to create my own window control buttons(minimize, maximize, restore, close). I want to use the native ones like the thing that Microsoft Office and Google Chrome did. How should I do?

Office

enter image description here

Chrome

enter image description here

like image 820
IvanaGyro Avatar asked Sep 05 '25 18:09

IvanaGyro


1 Answers

There is no easy way to just use the default chrome buttons as-is in a custom window I am afraid.

But you could quite easily create your own ones using the Segoe MDL2 Assets font:

What is the font family of the close/minimize/reduce button in Windows 10?

Show default window buttons on WPF Window using WindowChrome

like image 51
mm8 Avatar answered Sep 08 '25 09:09

mm8