C# WPF Tutorial #6 - Custom User Controls

preview_player
Показать описание
Creating the foundation for a menu bar to learn how to take sections of your UI and create custom user controls that can be used anywhere!

Happy Coding!

Chapters:
0:00 Intro
0:04 Setup
0:20 Creating a Menu Bar
4:10 Creating a Custom Control
6:52 Using our Custom Control
8:35 Next Up
Рекомендации по теме
Комментарии
Автор

Just a note for those who have the same problem. I added the custom control and followed the instructions verbatim. The editor underlined my userControls:MenuBar and claimed it could not find it. It was referenced properly in the include statements above. The path was correct. The files themselves were in physical file path where they should be. This was driving me nuts. I found online that you close/restart your project and then perform a build when this occurs. That solved my problem. Just posting in case others out there experience the same thing.

LeeMarsh-knyk
Автор

I’m learning WPF for the first time. Great contents and very easy to understand. thanks so much!

Stars.Stripes.andVan
Автор

Great job, everything's making sense now. keep doing what you're doing.

MohammadrezaShekohi-jytn
Автор

Very nicely explained. The best WPF tutorials on YouTube!

DavidCoded
Автор

This series is great! I've learnt so much with so much less time than other WPF videos. You worth more subs.

Btw, this video i've learned that user control seems like components in reactjs haha

marcbentoy
Автор

Amazing video! i'm glad you started this series, it is really helpful!

mr.pancakegaming
Автор

i rarely comment on any video but please know how much i appreciate the great effort from you teaching us or me a thing i didnt know anything about and i understand it fully till this video, a message from a fellow gamer <3

senzei
Автор

That "userControls files" will offer a hard work of designing new projects.. awesome!

muamel
Автор

I'm learning with your videos so much thing very easily. It's all thanks to you. :)

wookyumkim
Автор

this is Awesome I am engaged and learning

johnlouden
Автор

just watched two of the videos from the tutorial, am finding them awesome and learning from them, thanks

James-Eury
Автор

Super helpful and well delivered. Thanks.

mohacsi
Автор

Thank you so much. Your explanation is top notch.

chrismacharia
Автор

post more videos about wpf and mvvm🙏 You are the great explainer!

danielseverinov
Автор

This helps a lot! I was thinking there had to be a way to re-use code, and this helped answer that question. It seems like you could build up a lot of these controls and snap them together quickly to build a UI as a starting point then customize from there.

MethodOverRide
Автор

This videos are amazing: you go straight to the point and you give a lot of information in a few minutes! Thanks a lot!
Now I have a question:
Creating a different user control is very useful from a UI perspective but what if you need to access objects and variables declared in the main window or somewhere else? For instance you need to perform some actions when the user select a menu item. Probably you don't have access to all your data structure your app needs to deal with from inside your custom control. What's the best way to solve this problem in WPF?
Thanks again! 🙂

liber_channel
Автор

When I import it to user control file it the column makes a split in the menu to

SAFTA_SONIC-AI
Автор

Cool, love these series. Maybe it will be covered later, but is it possible to hide and unhide custom controls?

gabe
Автор

Thanks for the class. This really helps!! Btw, is there a way to match the menuitem's height with the menber's height? I tried, height="auto" for the menu items but it doesn't work. It seems to be not clever to type the same height="30" property to both menuitem and menu. 2:28

nim
Автор

There is no doubt the content of this videos is high-quality, however, I ran the code and the SubItem (Exit) pops out of the window, which is quite strange.

willianandress