WPF Tutorial - Introduction In 30 Minutes (Binding, XAML & Data Context)

  Рет қаралды 109,757

ToskersCorner

ToskersCorner

Күн бұрын

In this C# tutorial we will discuss and learn to program the various things in C# WPF. This tutorial is intended for beginners.
-WPF and MVVM
-WPF binding
-WPF xaml
-WPF xmlns(XML Namespaces)
-Using WPF Data context's
*Looking for a book on C#?
amzn.to/2IgVThZ
Let me know how you feel about this video!
www.opinionstage.com/tosker/ho...
*Subscribe for future tutorials*.
*Support me on Patreon
www.patreon.com/user?u=4666568
Have any troubles while following this video, or maybe even some questions? Feel free to contact me via KZbin messaging or email(ToskersCorner@outlook.com)!
Email may have faster responses
** Tip Jar **
Paypal: toskerscorner@outlook.com
BTC: 3DkvwvcQ8Vt2U84jdtEhNBx2Ueai3Xttmu
ETH: 0xFf79A145e1ED6F538607Ec374968e605cbea758b
BCH: qqpgrnzuhc5hav4e79m8nfhmugs46jtl0ujxcu0tj5
LTC: MHXQmJA3hkwTPeArB9QPNkcLiHQx723yMb

Пікірлер: 107
@ToskersCorner
@ToskersCorner 6 жыл бұрын
Don't forget, if you are the type of person who works at a faster pace you can always increase the video speed to 1.5x
@TheMilliardo
@TheMilliardo 5 жыл бұрын
Hey. Can you make a short video about how to make a Splash Screen with some controls like text, background, and some custom button in UWP?
@danhale6661
@danhale6661 5 жыл бұрын
After doing this, either using a chrome extension or just in the KZbin settings, Idk how ppl still listen at regular speed. 1.5x to 2x is great and time saving
@pra8eek
@pra8eek 4 жыл бұрын
I'm new to WPF and I watched so many tutorials but none of 'em have explained it with this much clarity. Thank you so much..!!!
@duncancarr7822
@duncancarr7822 6 жыл бұрын
This is a great tutorial. I've watched tons & never seen any that explain this stuff so well. Thanks ever so much. You're a fantastic tutor.
@BorisMilner
@BorisMilner 3 жыл бұрын
A very good collection of tutorials. It helps with the initial learning-curve much better than others I've encountered. You really nailed it with the summary slides and the simplified examples !
@kamnajadhav9651
@kamnajadhav9651 4 жыл бұрын
i had been searching good tutorial for wpf since a long time, and none of the materials were as good as this ! thanks a lot buddy for helping out !!
@gajarajsekar8044
@gajarajsekar8044 6 жыл бұрын
Thanks for showing me rather than explaining what data binding is. I have been confused by this for quite a while and your video pulled me out of all the doubts and questions I had. Thank you
@ilovejingle
@ilovejingle 4 жыл бұрын
Thank you, this is the clearest explaination I have ever seen.
@md.mozibur.rahman
@md.mozibur.rahman 6 жыл бұрын
I watched so many videos about XAML data context and still wasn't getting it, may be I am dumb, but this video cleared all the thing in my brain and suddenly I 've started understanding everything about Data Context. Thanks man !!
@jeffreycounts
@jeffreycounts 3 жыл бұрын
This was so helpful and was a perfect combination of explanation and examples. Thanks for making this!
@19jewels95
@19jewels95 3 жыл бұрын
You are an absolute legend! ^.^ I'm only about halfway through but the pace at which you go is superb for beginners. All this stuff is so daunting for people who are also just learning c# and don't have much experience with OOP. Thank you for spreading your wisdom :)
@user-bk8rp9zj6q
@user-bk8rp9zj6q 2 жыл бұрын
The best introductory tutorial to WPF I`ve seen so far.
@amanatazizkhan8765
@amanatazizkhan8765 2 жыл бұрын
Thanks sir. This is one of the best tutorials for a beginner, if not the. We all appreciate your hard work you put in for this 30-minutes video
@Willlly61
@Willlly61 3 жыл бұрын
Thank you so much for this video! I agree wholeheartedly with what some other people have commented.. that this video finally explained the basic concepts of WPF in a comprihensible way
@SifatSultanTheConsistency
@SifatSultanTheConsistency 7 жыл бұрын
I loved it man, LOL at the end!
@Aaron77799
@Aaron77799 7 жыл бұрын
I find your tutorials really good , i big life saver
@ToskersCorner
@ToskersCorner 7 жыл бұрын
Awesome, Hope my content continues to help!
@dogstar9455
@dogstar9455 3 жыл бұрын
This is the best explanation of the basics for WPF that I've seen at the perfect pace. I like the fact that you don't immediately install a third party framework and start using it. I think that you should know whats going on at a base level first before pulling in stuff that does "magic" stuff for you. Thx.
@f41nT
@f41nT Жыл бұрын
no shit, this is definetely the best intro on wpf on whole yt.
@lionciomorcilla3045
@lionciomorcilla3045 3 жыл бұрын
Best WPF tutorial ever!!!
@asdasddas100
@asdasddas100 7 жыл бұрын
You deserve more subs
@ToskersCorner
@ToskersCorner 7 жыл бұрын
da dave dude Thanks! Hopefully ill get there! 😁
@Matt-ov9gi
@Matt-ov9gi 6 жыл бұрын
It 's absolutely Awesome ! Thanks!
@FuzzyDPozzy
@FuzzyDPozzy 3 жыл бұрын
i think from all ur videos this was the best one
@beardordie5308
@beardordie5308 4 жыл бұрын
Great video. I swapped the Up and Left keycaps on my keyboard based on your suggestion. Life changing.
@ToskersCorner
@ToskersCorner 4 жыл бұрын
What did you mean by this?
@aussieraver7182
@aussieraver7182 3 жыл бұрын
THANKS! As a web developer, work gave me a WPF task to do. Never used it before, but your tutorial made it so easy, thanks again!
@rockinpenguin
@rockinpenguin 4 жыл бұрын
Finally found the gold nugget among the mess of youtube's numerous wpf's tutorials !! Best in depth explanation of what the hell is wpf...
@patrickbmcke8221
@patrickbmcke8221 3 жыл бұрын
Same thing here !
@mhmdnayef710
@mhmdnayef710 4 жыл бұрын
Thank you for this great tutorial.
@Juan-lj4pi
@Juan-lj4pi 3 жыл бұрын
the best intro to WPF I've found
@edouardpoitras810
@edouardpoitras810 Жыл бұрын
I have been researching WPF with books and videos and your video really uncover the cloak of DataContext- Thanks
@Ahambric1998
@Ahambric1998 2 жыл бұрын
this was great.. cleared a lot up for me on data context. Thanks!
@AmitSingh-uq5ii
@AmitSingh-uq5ii 5 жыл бұрын
Best intro ever for wpf....it seems You have great knowledge of wpf
@ToskersCorner
@ToskersCorner 5 жыл бұрын
Thank you very much. In hindsight there are a few clunky parts of the video and poorly explained things which I hate. I hope to redo the video even though many people find it helpful.
@nasarazam
@nasarazam 4 жыл бұрын
I am SQL server DBA and have not done GUI programming since PowerBuilder days ! I was able to follow everything in this video. Very well explained - Excellent Tutorial. A glimpse of separating GUI from business logic...
@navin2k6
@navin2k6 4 жыл бұрын
Nice explanation!! Thank you!
@wieland2574
@wieland2574 6 жыл бұрын
Thank you for your tutorial!
@sobermushroom1539
@sobermushroom1539 3 жыл бұрын
Thank's really! It helped me a lot in starting to understand this peculiar and sophisticated things, I hope...
@liamo6756
@liamo6756 9 ай бұрын
First tutorial I've found that explains any of this in an intuitive way. So many others gloss over the datacontext, code-behind and namespace stuff wayyy too fast
@jrjunior4524
@jrjunior4524 6 жыл бұрын
woow.... Tosker, you are just awesome, I wish to see you in Plurasight or Udemy, Lynda etc... you are awesome in explaining the concepts
@LesterMolinaCartuchoDesigns
@LesterMolinaCartuchoDesigns Жыл бұрын
Awesome! Thanks!
@agucciardi
@agucciardi Жыл бұрын
Excellent video 👍
@geekbait7019
@geekbait7019 Жыл бұрын
are you a teacher by trade? by FAR, these are the best tutorials i've seen on any subject on youtube.
@grimborn3606
@grimborn3606 4 жыл бұрын
Very nice vid I learned a lot
@redslayer973
@redslayer973 6 жыл бұрын
Thanks for the help
@TopazCentuallas
@TopazCentuallas 7 жыл бұрын
So useful!
@christianberger7998
@christianberger7998 4 жыл бұрын
Great Video helping me to understand bindings. One tip: Tools--Options--Debugging--General--"Show Runtime-Tools in Application" Edit: As nanonerd100 suggested: This lets you remove the little bar on your Main Window while in Debugging Mode
@nanonerd100
@nanonerd100 4 жыл бұрын
This is great. You should mention that it is to remove the "annoying" small box at the top of the window when running the app in debug mode. Otherwise, no one will know and few will try it.
@uccoskun
@uccoskun 7 жыл бұрын
very good explanation, i liked the explanation of all the details, all the small things you can easily skip. If you have time: (1) after this explanation, you can prepare a simple example to show how to use just to digest and (2) name the file names so we can watch your videos in an order. Thank you again, your videos are very good.
@finch9668
@finch9668 6 жыл бұрын
fantastic !
@santiagocastro4683
@santiagocastro4683 5 жыл бұрын
I wish I started learning WPF with this video, last month...
@ToskersCorner
@ToskersCorner 5 жыл бұрын
I'm glad you found this useful. Part of me plans on redoing this video to make it more presentable and to fix a few bits of information that I now find not entirely accurate in the way I worded it. Overall I try to make my videos in a way I feel would have been useful for me when I first started. Sometimes it's frustrating to watch a dozen videos from a bunch of people where they all cover and repeat the SAME things and never quite have the kind of information I am seeking. Often going on too long about the easy parts and not long enough on the more difficult parts. 10 minutes talking about how a button works and 1 minute on a data context (I'm exaggerating a bit, but you get my point).
@generalcontrol
@generalcontrol 7 жыл бұрын
As for data context and binding that would be great to give a practical example of what this extra abstraction layer is good for against directly programming controls. Great tutorials, btw.
@ToskersCorner
@ToskersCorner 7 жыл бұрын
+generalcontrol I understand why you would ask that question, given I have asked it many times myself. Unfortunately, I feel the importance of it is something better understood when it "clicks" vs various examples and explanations. As you use it for larger projects, in which require many revisions, you will see how much easier it makes development. Its not that is HAS to be done this way. Directly programming can accomplish the same thing. Its simply a different way that when mastered, can dramatically improve development speed and flexibility. I will however, contemplate coming up with an example for you.
@67Keldar
@67Keldar 3 жыл бұрын
Great Video... really filled in a few gaps I was struggling to understand from other videos... going to check out some of your other vids as a result ;) Also Subscribed :o)
@colbygreen6766
@colbygreen6766 6 жыл бұрын
great video
@stepan7396
@stepan7396 7 жыл бұрын
Thanks for video!!!!!!!!!
@ToskersCorner
@ToskersCorner 7 жыл бұрын
No problem, Stepan! :)
@bissash103
@bissash103 5 жыл бұрын
is always needed to put crl when defining own xmlns? thanks for the video :)
@vinzer72frie
@vinzer72frie 7 жыл бұрын
Thanks
@ToskersCorner
@ToskersCorner 7 жыл бұрын
No problem! Thanks for checking out my channel :)
@mmcgames8499
@mmcgames8499 4 жыл бұрын
nice tutorial
@johnsailor3590
@johnsailor3590 7 жыл бұрын
Very helpful
@ToskersCorner
@ToskersCorner 7 жыл бұрын
Glad to hear! If you didn't already, the description has a link to a small survey of 5~ questions you could answer to help me improve future videos. Thanks again, Benito!
@johnsailor3590
@johnsailor3590 7 жыл бұрын
be sure about that!
@ronicoding4496
@ronicoding4496 6 жыл бұрын
Finally got it.. datacontext
@shaikhzoyeb
@shaikhzoyeb 6 жыл бұрын
thanks , it was wonderful , you have now new sub :)
@ToskersCorner
@ToskersCorner 6 жыл бұрын
Thanks! Be sure to check out my other videos, I have plenty of more content on WPF. I also have playlists organized for beginners and other topics.
@shaikhzoyeb
@shaikhzoyeb 6 жыл бұрын
Sure, i I'll go through your all videos
@MrMrkBo
@MrMrkBo 5 жыл бұрын
Great video. I still haven't been able to bind my ArrayList to a particular datagridview column, but I'm a lot closer now. But what I really want to know is what happened to Casper the Friendly Ghost? Did you bonk him on the head?😆
@wesselpoldervaart4658
@wesselpoldervaart4658 7 жыл бұрын
has tought me more than random clicking(a technique wich works surprisingly well most of the time sometimes)
@ToskersCorner
@ToskersCorner 7 жыл бұрын
I hope that was a compliment :)
@wesselpoldervaart4658
@wesselpoldervaart4658 7 жыл бұрын
ToskersCorner yes it is a compliment
@ToskersCorner
@ToskersCorner 7 жыл бұрын
Haha, okay thanks :D Glad to help! '
@nero1563
@nero1563 4 жыл бұрын
what a great video !!!!!!! Thanks a lot! You should teach on the Udemy !!!
@raviprasad2379
@raviprasad2379 7 жыл бұрын
Hi Buddy, completed 2 sets of wpf playlist. Waiting for some more concepts like Dependency Property, DataTemplate etc. Hope you will cover 😃
@ToskersCorner
@ToskersCorner 7 жыл бұрын
I will plan on videos such as custom controls, dependency props etc. However, for DataTemplates, if you have not already, my "Multiple Views in WPF" uses them I believe. (I will do a separate video on them for the future as well)
@raviprasad2379
@raviprasad2379 7 жыл бұрын
Thanks Buddy 😊
@juanclopgar97
@juanclopgar97 4 жыл бұрын
Great video!, I'm understanding all!!! but I've just a little question. I don't understand at all 'x' namespace, I know now that it allows to get Information like Metadata I think, Types and that kind of stuff but, Why x:Name??? Without 'x' namespace, controles aren't gonna have Name property?(I know the answer is no), but so, Why is there for?
@mr.es1857
@mr.es1857 6 жыл бұрын
Hey tosker do you know anything about "ShutdownMode" porperty for apps ???
@acbattery
@acbattery 4 жыл бұрын
after i use {Binding} the button content is no longer visible in XAML window while editing. Also the button size (height) sets to a minimum. Is there a way to show the content of button in the XAML Window while editing, although im using {Binding ...}?
@loia5tqd001
@loia5tqd001 5 жыл бұрын
Ex. I’m gonna watch all of your videos (and like them all) as soon as possible. Btw i’m curious about your color parameters of the text editor. It looks nicer than the default colors of VS.
@ToskersCorner
@ToskersCorner 5 жыл бұрын
This, I believe, is actually the dark theme for VS. You can change to it in settings. You can find custom ones at studiostyl.es/ (That's where I go)
@jefdilen1473
@jefdilen1473 3 жыл бұрын
17:55 i don"t understand what this do... dockpanel yellow?? i see nothing changed?
@ivanmah7551
@ivanmah7551 7 жыл бұрын
how do a private void event handler like radioButton_Checked access into a public MainWindow() or public void method variable?
@ToskersCorner
@ToskersCorner 7 жыл бұрын
The answer to depends on your circumstances. Is your radioButton_Checked in a separate class from your public method or MainWindow()? If you want, you can post your code to PasteBin and email me your issues at toskerscorner@outlook.com and I will certainly try to help you.
@ivanmah7551
@ivanmah7551 7 жыл бұрын
Hi, i somehow solve the problem after understanding how event handler work. But i Do have a question, let say im working on a quiz application and i get my question and answer from a text file where i have already string split but i want to reuse the same toolbox or UI which place on my window since i have more than 1 question inside my text file. What is the best approach in WPF when wanted to reuse the same window
@ToskersCorner
@ToskersCorner 7 жыл бұрын
If you are going to have multiple views that change in the same window, you may want to check out my WPF tutorial video on using multiple views. If you are having controls simply change in value(I.E question and answer) every time the user gets it right vs wrong then you may want to look in to INotifyPropertyChanged - which I also have a video on.If your questions require more specifics, feel free to contact me via my email or messaging on KZbin. It will be much easier to discuss through those than in KZbin comments.
@tsvetomirtsanev5237
@tsvetomirtsanev5237 6 жыл бұрын
Hello, Why to use BINDING in xaml? What is positive things of that? I saw only negative to make my project more difficult. Now I write my project withou this option BINDING. Just write direct in XAML, name of button, TBox.context..... When I use DataGrid I write name of columns in C# without BINDING. Is this a problem? Have a nice day
@ToskersCorner
@ToskersCorner 6 жыл бұрын
Binding, when used properly, is far more convenient and cleaner to use. Now, you obviously may disagree because it likely goes against the grain of what you normally have developed a habit to do, which is utilize the code-behind. So often trying to develop a new habit with binding feels like it makes things more complicated, which it does, but only through the learning process. When you use binding it makes it much easier to swap, change, or make new views without rewriting code. It helps reduce dependencies in your view. Is not using binding a problem? Well, it depends. Many people would say yes, and I know many people feel the way you do. If you are making an application, then make it the best way that YOU can. If you are not fully versed or comfortable with binding, then don't use it for a more serious project. You will likely create bigger issues by using it improperly than just simply sticking with what you know. However, this doesn't mean you should not evolve as a programmer and stay away from learning newer and better ways. I would suggest that you try to LEARN binding, but don't let it keep you from making progress in other areas. Take small steps, slowly start using it to the degree you feel comfortable. Continue to challenge yourself, not overwhelm. For example, a while back I started learning a lot of programming patterns. I continued hearing people talk about how much better it was to use some patterns for some things, so I wanted to learn them. However, because I was new to some of them, and only understood them at a shallow level, I started using them everywhere with everything. In the end they made my applications much worse. Not because the PATTERNS made it worse, but my eagerness to use things I didn't fully UNDERSTAND did. To sum up my point, just because you learn about or see something better doesn't mean you have to throw everything you know out the window. I notice, at least for myself, when I learn something new I develop this "born again" mentality, and often I notice this can hurt my progress. Aim towards learning new things, but transition to using them, don't abruptly change how you do everything because of one thing you are currently learning. Hope that made sense, I can ramble on sometimes ;P
@JymMorton
@JymMorton 6 жыл бұрын
I don't know that I agree with (or understand) your ID analogy. Should it not be: the information on the ID can be completely incorrect (you've moved) but you still get your mail because you told the Post Office your new address. You are waiting for the 'update' to the ID? Same thing happens on the computer except instead of a 4-6 week wait the update is microseconds.
@ToskersCorner
@ToskersCorner 6 жыл бұрын
Jym I am notorious for bad analogies. If it confused you feel free to ignore it lol.
@andread4721
@andread4721 5 жыл бұрын
The code is difficult to read in the video and the sound volume is a little too low, but the content and the explanations are very good.
@antnauman
@antnauman 4 жыл бұрын
24:06 "Whoops I always hate this little designer tool here" Who doesn't?? 😁
@oldvsdeveloper4652
@oldvsdeveloper4652 3 жыл бұрын
In VS2019 go to 'Tools>Options>Debugging>General' and unclick "Enable UI Debugging Tools for XAML" Hey Presto!
@ultrahigh5961
@ultrahigh5961 3 жыл бұрын
Nice tutorial. But the resolution of the video is a bit trashy
@loganfairbairn4605
@loganfairbairn4605 4 жыл бұрын
Watch tutorials in 1.25x speed.
@john_hatten2862
@john_hatten2862 5 жыл бұрын
type comment comment here
@Festerbestertester6
@Festerbestertester6 4 жыл бұрын
I don't see what is wrong with dragging a control into the form just to get a starting point. We are not subservient to whatever XAML it produces. Modify it to something reasonable.
@foltandaniel
@foltandaniel 4 жыл бұрын
Set the speed to 1.25x. Thank me later.
@user-xd9vv5eq1q
@user-xd9vv5eq1q 7 жыл бұрын
It is a good lecture. However, there is no such good lecture in Korea. And I do not speak English well. I want to listen to lectures in Korean.
@ToskersCorner
@ToskersCorner 7 жыл бұрын
I would try to learn Korean for you, but I have done poorly learning the ones I have already tried(German, Spanish and some Russian). I'll keep my eye out for any WPF or C# material for Korean audiences and send it your way if I do... ;) Thanks for the comment!
@jcbritobr
@jcbritobr 3 жыл бұрын
No xaml. Just visual studio. Wtf.
@EarlWoodJr
@EarlWoodJr 7 жыл бұрын
Thank you for this great tutorial.
@ToskersCorner
@ToskersCorner 7 жыл бұрын
Thanks, Earl. Always glad to see people find this useful.
C# WPF Tutorial - Using INotifyPropertyChanged
22:01
ToskersCorner
Рет қаралды 48 М.
XAML Data Binding and MVVM Basics (.NET MAUI, WPF, UWP, Xamarin.Forms)
19:15
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 93 МЛН
Scary Teacher 3D Nick Troll Squid Game in Brush Teeth White or Black Challenge #shorts
00:47
WPF INotifyPropertyChanged and Databinding
14:30
Payload
Рет қаралды 39 М.
Is LEARNING WPF still WORTH it in 2023?
10:59
tutorialsEU
Рет қаралды 41 М.
C#/WPF - Learning the DataGrid
1:42:38
Kevin Bost
Рет қаралды 9 М.
Rest API - Best Practices - Design
15:50
High-Performance Programming
Рет қаралды 100 М.
The Basics of Data Binding in WPF
20:53
Tactic Devs
Рет қаралды 36 М.
WPF DataContext
20:25
tips'n tricks
Рет қаралды 7 М.
C#/WPF - Learn MVVM with the .NET Community Toolkit
1:46:13
Kevin Bost
Рет қаралды 50 М.
Abstraction Can Make Your Code Worse
5:13
CodeAesthetic
Рет қаралды 625 М.
Why use Type and not Interface in TypeScript
14:12
ByteGrad
Рет қаралды 195 М.
WPF in C# with MVVM using Caliburn Micro
1:23:30
IAmTimCorey
Рет қаралды 361 М.