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

Поделиться
HTML-код
  • Опубликовано: 13 дек 2024

Комментарии • 111

  • @ToskersCorner
    @ToskersCorner  6 лет назад +27

    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 6 лет назад

      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 6 лет назад +1

      After doing this, either using a chrome extension or just in the RUclips settings, Idk how ppl still listen at regular speed. 1.5x to 2x is great and time saving

  • @pra8eek
    @pra8eek 4 года назад +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..!!!

  • @ViktorBudylin
    @ViktorBudylin 3 года назад

    The best introductory tutorial to WPF I`ve seen so far.

  • @gard2054
    @gard2054 4 месяца назад

    I thought binding was extremely hard, but you managed to explain it properly in just 25 minutes. I'm amazed. Thanksssss a lot!

  • @gajarajsekar8044
    @gajarajsekar8044 6 лет назад +4

    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

  • @nasarazam
    @nasarazam 5 лет назад

    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...

  • @duncancarr7822
    @duncancarr7822 7 лет назад +10

    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.

  • @f41nT
    @f41nT 2 года назад

    no shit, this is definetely the best intro on wpf on whole yt.

  • @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...

  • @Juan-lj4pi
    @Juan-lj4pi 4 года назад

    the best intro to WPF I've found

  • @lionciomorcilla3045
    @lionciomorcilla3045 3 года назад

    Best WPF tutorial ever!!!

  • @md.mozibur.rahman
    @md.mozibur.rahman 7 лет назад +2

    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 !!

  • @edouardpoitras810
    @edouardpoitras810 Год назад

    I have been researching WPF with books and videos and your video really uncover the cloak of DataContext- Thanks

  • @FuzzyDPozzy
    @FuzzyDPozzy 4 года назад

    i think from all ur videos this was the best one

  • @geekbait7019
    @geekbait7019 Год назад

    are you a teacher by trade?
    by FAR, these are the best tutorials i've seen on any subject on youtube.

  • @christianberger7998
    @christianberger7998 4 года назад +1

    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 года назад +1

      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.

  • @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.

  • @amanatazizkhan8765
    @amanatazizkhan8765 3 года назад

    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

  • @asdasddas100
    @asdasddas100 7 лет назад +22

    You deserve more subs

    • @ToskersCorner
      @ToskersCorner  7 лет назад +2

      da dave dude Thanks! Hopefully ill get there! 😁

  • @beardordie5308
    @beardordie5308 4 года назад

    Great video. I swapped the Up and Left keycaps on my keyboard based on your suggestion. Life changing.

  • @MonderMurshed
    @MonderMurshed 2 месяца назад

    The best! keep it going my bro!.

  • @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 !!

  • @kerriemartin6013
    @kerriemartin6013 16 дней назад

    Really well done. Thank you!!

  • @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 !

  • @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.

  • @jeffreycounts
    @jeffreycounts 3 года назад

    This was so helpful and was a perfect combination of explanation and examples. Thanks for making this!

  • @liamo6756
    @liamo6756 Год назад

    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

  • @Ahambric1998
    @Ahambric1998 2 года назад

    this was great.. cleared a lot up for me on data context. Thanks!

  • @ilovejingle
    @ilovejingle 4 года назад

    Thank you, this is the clearest explaination I have ever seen.

  • @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

  • @santiagocastro4683
    @santiagocastro4683 6 лет назад +1

    I wish I started learning WPF with this video, last month...

    • @ToskersCorner
      @ToskersCorner  6 лет назад +1

      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).

  • @agucciardi
    @agucciardi 2 года назад

    Excellent video 👍

  • @19jewels95
    @19jewels95 4 года назад

    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 :)

  • @SifatSultanTheConsistency
    @SifatSultanTheConsistency 7 лет назад +2

    I loved it man, LOL at the end!

  • @sobermushroom1539
    @sobermushroom1539 3 года назад

    Thank's really! It helped me a lot in starting to understand this peculiar and sophisticated things, I hope...

  • @grimborn3606
    @grimborn3606 4 года назад

    Very nice vid I learned a lot

  • @Aaron77799
    @Aaron77799 7 лет назад +1

    I find your tutorials really good , i big life saver

    • @ToskersCorner
      @ToskersCorner  7 лет назад

      Awesome, Hope my content continues to help!

  • @navin2k6
    @navin2k6 5 лет назад

    Nice explanation!! Thank you!

  • @LesterMolinaCartuchoDesigns
    @LesterMolinaCartuchoDesigns Год назад

    Awesome! Thanks!

  • @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.

  • @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)

  • @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.

  • @mmcgames8499
    @mmcgames8499 4 года назад

    nice tutorial

  • @nero1563
    @nero1563 4 года назад

    what a great video !!!!!!! Thanks a lot! You should teach on the Udemy !!!

  • @jefdilen1473
    @jefdilen1473 3 года назад

    17:55 i don"t understand what this do... dockpanel yellow?? i see nothing changed?

  • @Matt-ov9gi
    @Matt-ov9gi 7 лет назад

    It 's absolutely Awesome ! Thanks!

  • @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?

  • @wesselpoldervaart4658
    @wesselpoldervaart4658 7 лет назад +1

    has tought me more than random clicking(a technique wich works surprisingly well most of the time sometimes)

  • @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

  • @EarlWoodJr
    @EarlWoodJr 7 лет назад +1

    Thank you for this great tutorial.

    • @ToskersCorner
      @ToskersCorner  7 лет назад

      Thanks, Earl. Always glad to see people find this useful.

  • @acbattery
    @acbattery 5 лет назад

    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 ...}?

  • @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 😊

  • @ronicoding4496
    @ronicoding4496 6 лет назад

    Finally got it.. datacontext

  • @wieland2574
    @wieland2574 6 лет назад

    Thank you for your tutorial!

  • @colbygreen6766
    @colbygreen6766 7 лет назад

    great video

  • @TopazCentuallas
    @TopazCentuallas 8 лет назад

    So useful!

  • @redslayer973
    @redslayer973 6 лет назад

    Thanks for the help

  • @bissash103
    @bissash103 5 лет назад

    is always needed to put crl when defining own xmlns? thanks for the video :)

  • @finch9668
    @finch9668 6 лет назад

    fantastic !

  • @antnauman
    @antnauman 4 года назад

    24:06 "Whoops I always hate this little designer tool here"
    Who doesn't?? 😁

    • @oldvsdeveloper4652
      @oldvsdeveloper4652 4 года назад

      In VS2019 go to 'Tools>Options>Debugging>General' and unclick "Enable UI Debugging Tools for XAML" Hey Presto!

  • @MrMrkBo
    @MrMrkBo 6 лет назад +1

    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?😆

  • @mr.es1857
    @mr.es1857 7 лет назад

    Hey tosker do you know anything about "ShutdownMode" porperty for apps
    ???

  • @johnsailor3590
    @johnsailor3590 8 лет назад +1

    Very helpful

    • @ToskersCorner
      @ToskersCorner  8 лет назад +1

      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 8 лет назад

      be sure about that!

  • @ivanmah7551
    @ivanmah7551 8 лет назад

    how do a private void event handler like radioButton_Checked access into a public MainWindow() or public void method variable?

    • @ToskersCorner
      @ToskersCorner  8 лет назад

      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 8 лет назад

      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  8 лет назад

      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 RUclips. It will be much easier to discuss through those than in RUclips comments.

  • @shaikhzoyeb
    @shaikhzoyeb 6 лет назад +1

    thanks , it was wonderful , you have now new sub :)

    • @ToskersCorner
      @ToskersCorner  6 лет назад +1

      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

  • @stepan7396
    @stepan7396 7 лет назад

    Thanks for video!!!!!!!!!

  • @loia5tqd001
    @loia5tqd001 6 лет назад

    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  6 лет назад

      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)

  • @vinzer72frie
    @vinzer72frie 7 лет назад +1

    Thanks

    • @ToskersCorner
      @ToskersCorner  7 лет назад

      No problem! Thanks for checking out my channel :)

  • @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 лет назад +3

      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

  • @loganfairbairn4605
    @loganfairbairn4605 4 года назад +1

    Watch tutorials in 1.25x speed.

  • @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.

  • @ultrahigh5961
    @ultrahigh5961 3 года назад +1

    Nice tutorial. But the resolution of the video is a bit trashy

  • @JymMorton
    @JymMorton 7 лет назад

    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  7 лет назад

      Jym I am notorious for bad analogies. If it confused you feel free to ignore it lol.

  • @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.

  • @john_hatten2862
    @john_hatten2862 5 лет назад

    type comment comment here

  • @인생-o4v
    @인생-o4v 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 лет назад +1

      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!

  • @ErcanMutlu-r4x
    @ErcanMutlu-r4x 4 месяца назад

    Nothing understand , please simplyfy this tutorial.

  • @jcbritobr
    @jcbritobr 4 года назад

    No xaml. Just visual studio. Wtf.

  • @foltandaniel
    @foltandaniel 5 лет назад

    Set the speed to 1.25x. Thank me later.

  • @mhmdnayef710
    @mhmdnayef710 4 года назад

    Thank you for this great tutorial.