[C# WPF Tutorial] How to Make a Functional Custom Window Chrome - EASIEST METHOD!

preview_player
Показать описание
Welcome to my first YouTube C# tutorial. This tutorial explains how to get a borderless window (WindowStyle.None) working with proper maximization and dragging functionality, as well as how add custom window control buttons.

Note that you need 7-Zip to open the file.

Рекомендации по теме
Комментарии
Автор

Thank you very much. Straight to the point. Explained in 8 minutes. No needless customizations of the App.

TechWithIndy
Автор

This is the best thing ever. I have spent so long looking of this type of functionally. you are my savior.

stevenbrown
Автор

The unique example all over internet that works! Thank you!

dacanizares
Автор

Just what I needed without anything I didn't! Good job. 🙂👍

nwdreamer
Автор

You, sir, are a gentleman and a scholar *Tip of the hat

stevephillips
Автор

Thank you for this, very helpful. From one dev to another, thanks!

zach
Автор

Thank you, I didn't suppose that it's so simple

АнонАнон-щэ
Автор

This is by far the best tutorial on this subject. I copied the entire project, and tried it on my setup (VS 2019 on Windows 10), and everything worked as explained in the video. Then, I developed my own application using the same approach, but the titlebar window height is 30 (as opposed to 35 given in the explanation) and that I set the width and height of the three buttons to 22 x 22. Now, when I maximize the window, the title bar is shifted by around 4 pixels towards the top so that rows 0 through 3 are not visible. Also, around 5-6 pixels on the right-side are clipped, which make part of the button for closing invisible. Any suggestions on what needs to be done when the height of the title bar and size of the buttons are changed so that the clipping on the top and right-side are eliminated? Thanks in advance.

mohsenabdollahi
Автор

Very informative video. I'd really like to see more tutorials from you!

Fusyoo
Автор

It's helpful. Thanks for sharing this.

陳紀融-lg
Автор

Thanks. How did you figure out how to fix this? Where did you learn that?

o_
Автор

how do you fix a problem with dragging panel to the top of your screen ? when I do this, it covers up the taskbar ;/

BoxBishop
Автор

In my custom windows i have a border with Padding="7" (for shadow), I can remove it when windows is maximized, but can't when I use aero snap feature :/ any ideas on how to fix this?

RealMajorBoobage
Автор

Is there a way to resize and move when moving the taskbar around?

JDean
Автор

I guess we don't really need to know exactly how that big chunk of code works to keep the app inside the screen ? This video is really helpful and to the point though! Thanks !

jnj
Автор

How can i add a grid thats below the title bar? i get errors when i try

zeester
Автор

Great Code, but the minWidth and minHeight property of the window is ignored after added the code handling the fullscreen mode. Any solution there?

danielfiller
Автор

this is very nice but does it have the snap assist functionality, for instance if you drag another program's window to the sides will it show the window of your app in the snap suggestions ?

SylwerFox
Автор

There is a problem with MinHigh and MinWidth. How to fix it bro?

mirzobedil
Автор

Why can I recize the window to the size 10x10 px?

arsenivet