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

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

TheFanatr

7 лет назад

17,650 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@o_2731
@o_2731 - 28.04.2023 19:17

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

Ответить
@indytech2020
@indytech2020 - 06.11.2022 17:44

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

Ответить
@JDean9722
@JDean9722 - 29.08.2022 04:54

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

Ответить
@zeester4964
@zeester4964 - 29.04.2022 04:25

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

Ответить
@Vitorgasparete
@Vitorgasparete - 11.04.2022 16:57

Very Thanks!

Ответить
@sergejk293
@sergejk293 - 06.12.2021 15:21

Helps me a lot! Thank you for sharing

Ответить
@holy_mac
@holy_mac - 21.09.2021 20:05

This method changes the MinWidth and MinHeight to 5. Is there some way to change that to something else? I tried finding it myself in the code provided, but it's all too complex for me.

Thanks.

Ответить
@BoxBishop
@BoxBishop - 22.08.2021 12:25

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

Ответить
@rainingsound2317
@rainingsound2317 - 10.07.2021 19:13

Great. Really helpful.

Ответить
@toni3124
@toni3124 - 12.06.2021 13:47

The first thing that works. Thank you

Ответить
@user-gl1ti5op4v
@user-gl1ti5op4v - 26.05.2021 10:59

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

Ответить
@nwdreamer
@nwdreamer - 19.03.2021 09:34

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

Ответить
@mohsenabdollahi3755
@mohsenabdollahi3755 - 23.02.2021 22:08

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.

Ответить
@mirzobedil
@mirzobedil - 05.10.2020 13:13

There is a problem with resize.

Ответить
@mirzobedil
@mirzobedil - 03.08.2020 14:12

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

Ответить
@RealMajorBoobage
@RealMajorBoobage - 23.04.2020 22:04

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?

Ответить
@j0nj1
@j0nj1 - 11.04.2020 20:07

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 !

Ответить
@ilyescherguimalih8205
@ilyescherguimalih8205 - 23.03.2019 10:33

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 ?

Ответить
@stevephillips9401
@stevephillips9401 - 06.01.2019 23:28

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

Ответить
@witcherbg
@witcherbg - 16.10.2018 17:15

Awesome, thank you! :)

Ответить
@zach1023
@zach1023 - 25.09.2018 01:31

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

Ответить
@stevenbrown6993
@stevenbrown6993 - 01.08.2018 00:43

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

Ответить
@dacanizares
@dacanizares - 09.07.2018 04:43

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

Ответить
@leedenbigh
@leedenbigh - 01.07.2018 18:28

For some reason this like is giving me error's "public override int GetHashCode() => left.GetHashCode() + top.GetHashCode() + right.GetHashCode() + bottom.GetHashCode();"

; expected
Invalid token'(' in class struct, or interface member declaration
Invalid token'(' in class struct, or interface member declaration
Invalid token'(' in class struct, or interface member declaration
Invalid token'(' in class struct, or interface member declaration

Ответить
@LKokos
@LKokos - 27.05.2018 15:17

My dude! Thank you

Ответить
@danielfiller122
@danielfiller122 - 08.03.2018 16:59

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

Ответить
@arsenivet4606
@arsenivet4606 - 05.03.2018 16:44

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

Ответить
@Fusyoo
@Fusyoo - 03.02.2018 15:42

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

Ответить
@nazarkorchemkin9717
@nazarkorchemkin9717 - 24.11.2017 19:55

thank u so much!!

Ответить
@user-pt5uu9ue2g
@user-pt5uu9ue2g - 10.09.2017 09:57

It's helpful. Thanks for sharing this.

Ответить