C# WPF UI Tutorials: 01 - The Basics
HTML-код
- Опубликовано: 4 фев 2025
- Support me at www.patreon.com/angelsix
Amazon Store www.amazon.co....
The first in a series of tutorials on creating WPF applications in C#
Starts with creating and using some basic controls like text boxes, labels, buttons, checkboxes and drop downs
Source code here: github.com/ang...
This is by far the best WPF tutorial out there.
It has the perfect pace for advanced beginners. Huge plus is that best coding practices are applied thoroughly (naming stuff, writing good comments in paralell with the coding, constant refactoring, organizing the project ... everything about the tutorial is just superb). The explanations are clear and you are treating your audience as adults without going into either too basic stuff or into too much details. At the same time the examples are very far from typical toy tutorial projects and can be applied in day-to-day work immediately (personal experience).
You truly have managed to create a masterpiece, thank you very much!
Thanks. Really glad to help people out
At last.. someone who is thorough, concise and can speak english...
Thanks :)
What Juan said ^
AngelSix
Hi there.
As I am new to programming and need a program to create graphs based on data collected from site would you be interested in doing one for me ??
More info when you confirm that you are interested in it .
Jay D you’re clearly not cut out to be a programmer if you get people to do the programming for you
J'aimerais mieux en français.
Great video, thank you. As a WinForms developer trying to learn WPF, this is by far the best video I've seen on the topic. This video shows what to do and how to do it and doesn't dump a whole bunch of theory on the user. Nothing's more confusing than watching a WPF video and hearing someone drone on about "best practices" in WPF when you don't even know how to write XAML!
Thanks again
ay.link/wpfaps
large wpf application
I just wanted to drop in and let you know that your SolidWorks API work from ~8-10 years ago is, in part, directly responsible for my transition from mechanical engineering to pure software development. Had I not stumbled upon your educational material and automated an incredibly tedious SW workflow, I would not have gone so hard into programming in general. And now, here I am, years later, getting an absolute master class in the next skill I need to advance my career. I've never donated to anyone on Patreon before, but you will be the first.
That's awesome to hear and so glad it helped you
46:07
In case anyone is wondering, the event name is "Click". This will trigger when the checkbox is checked or unchecked. It also triggers whether you use a mouse or the keyboard.
I like this. So straight forward. Doesn't treat the viewer like a baby as in other tutorials.
Thanks. Glad you like it :)
I watched a lot of tuts and I have experience on WPF but not no one teaches like you really good work and keep uploading videos there are a lot of people who are hungry for learning.
+Ahmed Hussainy thanks I'll keep the videos coming
ay.link/wpfaps
large wpf application
Thanks so much, I ran through your C# course first and am now learning WPF. You made this so easy to understand! I should have learned this 7 years ago!
39:32 just changed my life
me too 킹왕짱 ㅋㅋ
holy yes
Absolutely
Same here, I remember when I first time saw this edit multiline trick. :D
킹왕짱 222
I watched several videos before to get an introduction to WPF. This one did it for me. Thanks!
Excellent tutorial! Thank you for making this. This is the best WPF application I've seen on RUclips. Looking forward to part 2. Also looking forward to more WPF / C# applications!
Thanks glad you like it :)
ay.link/wpfaps
large wpf application
Excellent tutorial for me to refresh my WPF Skills after 6,5 years, thank you so much
00:00 - Part I: Building The interface
28:37 - (Quick review of the code)
35:17 - Part II: Coding the buttons (adding events to the buttons)
35:17 *event - Click* Apply-button
38:29 *event - Click* Reset-button
41:55 *event - Checked*
46:12 *event - SelectionChanged*
52:17 *event - TextChanged*
====================================================================================================================================
for myself:
I
26:00 *SelectedIndex="0"* Buttons & Checkboxes
"Text" => everything else
II
Fr fr thank u
look at me . i have't even watched this guy's one video and people your comments are making me mouthwatering
This channel is like netflix for me! enjoying!!
ha awesome I'm glad it is :)
Actually it's nothing like Netflix.
Netflix wastes your money and time.
These RUclips channels educate you and help you better yourself and your career.
ay.link/wpfaps
large wpf application
ay.link/wpfaps
large wpf application
Top man. I've just switched from Tester to GUI designer and you've saved my bacon more than once this week!
Awesome. Glad it's helping
fantastic explanations again. I hope you cover database and MVVM in the future. thank you for these great vids.
Thanks. Yes I will be covering MVVM and view models firstly, probably in about 2 videos time, then databases I will go over via explaining Entity Framework
ay.link/wpfaps
large wpf application
8 years and still useful, thanks.
If you want to keep the buttons the same size with spacing you can set the right margin to 6 for the left button, a left margin of 6 for the right button and a margin of 3 on both the left and right of the middle button. All three buttons will have then have the same size and the total margin spacing will be 9.
Casting an object sender to the source object like the comboBox etc is the most important concept very well explained
This Turorial is like a Matrix download of the best practice foundation of coding WPF straight into your brain! Thank you for posting it.
Holy shit man. You explain much better than my professor. Great job!
Gre3n! thanks man. don't tell your professor!
Thank you for putting together this series. Best intro to WPF out there by far from my perspective. Good content and pacing and everything is clearly explained like the null reference exception toward the end. Was good that that happened as people new to this could be stymied by stuff like that when they go to build their first application.
Thanks a lot, great tutorial !!! the best videos to learn wpf !!!!
+Marco L thanks
ay.link/wpfaps
large wpf application
I have been looking for something like this for some time now ... creating an application from scratch... You've done a wonderful job. I loved it. Thanks a ton for doing this. I can't wait to go through the rest of your videos.
Thanks
The one thing I noticed that was missing was the original screen shot made use of a border behind the form. If you're trying to make it look 100% accurate then you'd need to add a 10 pixel border of #E0E0E0, and a border within and set it's "BorderBrush" to "DarkGray" with a BorderThickness of 1... This wrapped around the original Border tag shown in the video produces a form similar the screenshot he provides in the video.
I am glad that people like you exist. Thank you for sharing your knowledge.
ay.link/wpfaps
large wpf application
Great Tutorial! Definitely the best I have found so far about Design in WPF. One Question could you tell for or make a video about how to add a kind of hint or ghost text to a Text box for example when you go to sign up for an account on Facebook it will Say "First Name" in the box for your name. Again Great tutorial keep it up!
+Classy Gaming yes already done just flick through and look at the sign up screen
Your videos are excellent. Thanks for making content for SolidWorks and WPF. It's helped me immensely with getting up to speed on creating an add-in for my company.
No problem glad you liked them
ay.link/wpfaps
large wpf applications
a
Who is watching this masterpiece in 2024 ?
Well you for starters, and me of course and with 1M views, I guess quite a few others. It's a good introduction to the basics without getting bogged down with all the MVVM stuff. Oh and by the way; Slava Ukraini and down with Orcs!😆
mi
This is by far the best WPF tutorial I've ever watched. Thank you SO MUCH!
what do I need to start this WPF series? I already have good knowledge of c# and LINQ and SQL Server
Another question please, Are you going to build an entire application in this course?
Awesome Teacher!!! So easy to follow. "and if you are wondering how i selected like that..." READ MY MIND!!!!
Ha yeah. The gold nuggets of advice. Super simple but super useful for daily coding
Fantastic guide, thank you!
Thanks. Glad you like it
Thank you so very very much! I've been reading online about WPF for like a week now and was still struggling and you made it clearer. I should've watched your videos from the very start. Going right to the next one. Thank you thank you thank you
Your welcome, glad I could help
ay.link/wpfaps
large wpf applications
a
Great video, thanks for sharing your knowledge! Would you cover error/exception handling in future videos? You made things so much easier to understand, amazing teaching! Thanks!
Sure I'll do one on debugging probably after the next video which will be WPF as everyone keeps asking for those :)
ay.link/wpfaps
large wpf application
Gave u a Thumbs UP - nice way to introducing a UI framework with UI. Pretty decent explanations and you were able to keep extraneous topics out of the presentation.
Incredible video! One question, any specific reason you write 'x:Name' rather than the shorter 'Name', which I believe works the same?
+eitzhadas habit. When I used WPF years ago you needed the x. I'll try and remember to remove it
also I found using Name without x: in a lot of places lately causes namespace conflicts. so best to stick to x:Name
ay.link/wpfaps
large wpf applications
a
This is exactly what I was looking for as a WinForms dev getting into WPF. Thank you for the time and effort to compile this series. I'm excited to watch the rest of the videos!
Glad I could help
do you think it's worth it to learn wpf in 2020?
depends what you want to do... it's the most flexible framework for UI
Newbie here. Thank you for your videos. It saves me a lot of time.
I love how you cover WPF, especially when you break down the UI and what it's composed of.
Thanks glad you like it
ay.link/wpfaps
large wpf applications
a
This is the BEST WPF TUTORIAL ever. Thank you so much as I am coming from Java.
This video is quite simple and easy to understand. I understood fundamentals of WPF Elements so easily. Thanks for the video.
I have an interview tomorrow. And they need me to know atleast basic wpf. This worked like a charm! Thank u so much sir! 👍
Pjanicked ha perfect hope the interview goes well
I just took a first look at WPF today and this video is an excellent introduction. Thank you very much sir!
No problem glad you like it :)
This is a complete and not boring starter video. Thanks a lot. I'll be watching most episodes to learn c#!!
I'm at the office, but I just had to login to like the video and tell you:
This is such an amazing guide, good job and thanks for putting such an effort into this! 💯
Thanks glad you like it :)
Incredible tutorial. Although you plunge right into the topic I never felt left out, as you explained everything on the go with great clarity and speed. It's a rare sight to behold.
Thanks, glad you like it :)
This was definitely an excellent video, the information goes straight to the point. And finally, no Indian accent was heard.
A quicker way to reset the check boxes all at once without writing all of them is to do this:
🐸🐸
private void ResetButton_Click(object sender, RoutedEventArgs e)
{
// boxes: is a name of a StackPanel containing all the checkboxes
var checkBoxes = this.boxes.Children;
foreach (CheckBox checkBox in checkBoxes)
{
checkBox.IsChecked = false;
}
}
Good clear introduction to WPF and XAML (and why typing code is better than dragging and dropping!)
Thanks
I thought I won't be wasting my time to learn XAML when I have all that ToolBox and I can simply make my apps with dragging & droping. But with ur explanations XAML seems much easier to learn, and now I can see the difference between drag&drop and typing it manualy through XAML code. Great tutorial, thank u for this!
Thats awesome. Glad it helped. It's hard to get away from drag-drop mentality once you are used to it, but there is so much more power in typing it, so long as you just understand and think in a specific way when doing it
FINALLY!! A tutorial that is actually helpful and informative for a beginner
nice explanation.....
Glad it was helpful!
This is wonderful and your code is so beautiful. I don't have access to my computer right now but just watching this is giving me an itch to try it out! Great video.
+Adoraci thanks
I am going through your videos and I am loving it.. I have understanding on wpf but wanted to brush up things and your videos really aided. Very good work!! Thumbs up
Glad you like them!
TNice tutorials was super helpful, dude! I got the tutorial version of soft soft just to get a taste, and after figuring it out I decided to purchase the
just wow... this is amazing, seriously! It's a big advantage if you have handled visual studio or HTML before, you'll understand the video much easier. I highly recommend to do everything along the way AND sometimes try to guess what is he going to do, let's say when he said he'll do the checkboxes, I did it alone to test myself!
I prefer your style, I mean other content creators often spend waaaay too much time on explaining stuff, but your approach is more like, let's go, do your stuff and I'll explain along the way! I learned a ton, and I'll definitely watch your other videos!
Thanks. Got new videos coming soon
Thank you! Excellent tutorials, and very useful!
and what even more important about this lessons is that AngelSix share a lot of Pro-Tips that even if you are a beginner you will already be better than people who learned from other places.
it takes experience and pain to learn those, and here you can learn about it and enjoy!
so recommend this channel to your friends
Thanks for the awesome comment, and your welcome glad my video could help
ay.link/wpfaps
large wpf applications
a
I really love how you taught in this video. I really understood the basics compared to other videos here in YT and other materials!! This is really helpful! Thanks a bunch!
Wow! I can't believe how easy you make things look, you're the best!
Thanks :)
ay.link/wpfaps
large wpf applications
Clear explanation. Understandable English. Good tempo. Great!
Thanks
That helped me a lot on understanding a lot of things that seemed hard but are actually pretty easy.
Thanks a lot , you really are a great Teacher !
Your weclome, glad it helped
absolutely love the way you teach and how one can easily follow along, this has been by far the greatest tutorial on what seemed to me like magic, coming from a windows forms background. ;) can't wait to follow along your other tutorials.
Greetings from rainy scotland :)
Awesome I'm glad it's been of help :)
Bro! God Bless you, your content is super Elite and simple to follow.
I wish you were my professor; When I was a student back then. Thx! , Very straight forward.
ay.link/wpfaps
large wpf applications
Just went through the first video and already found it very useful. Excited to get into more of your tutorials!
thanks (sorry for slow reply, youtube doesn't show alerts for all comments sometimes)
ay.link/wpfaps
large wpf applications
THIS is AMAZING. Thank you! Its clear. Its very informative. I was able to just code along with you. And it works. I've done SO MANY tutorials, and they don't work. And it is so frustrating. You let us know why you do things... Just Great!
Thanks and glad I could help you out
God bless your service sir, so brilliant tutorial. You taught us really very well. Highly appreciated🙏😊
Best teacher on planet!! I knew csharp WinForms only that I have never done WPF. This is best start ever. Keep up!
I really love this channel and i hope he come back soon.
6 years and still useful
I really enjoyed this tut.... helped me a lot to understand WPF a little better ! I plan on watching the other Tuts you have on this matter ! TY !
Thanks, this is one of the best courses I've ever came across!
Just One word for your Teaching Method ---- AWESOMEEEEE. I tried learning from various but it was just not in line.... Thank you very very very Much for this Awesome tutorials :) Cheers
Sam King wow thanks. glad my videos are so useful. more to come shortly
ay.link/wpfaps
large wpf applications
a
You did a great copy & paste trick at 38:53 which I didn't have a clue about before :) Btw awesome tutorial!
Hold Alt then click/drag a region
The explanation is really well done! He explains everything, thank you for this tutorial +rep
This series looks promising, thx for making this! Settling in for a tutorial binge :D
Ha awesome, hope you enjoy
Thanks a lot for this tutorial. Did a lot of stuff that used the console and basic windows forms. But this changed everything
Cool glad it helped :)
i gave you the like at min 3 of the video. Very clear and easy understandable tutorial. Thanks
Thanks glad you like it
Super informative, also an extra +1 for the alt-click trick. I cant believe I never knew that feature in msvc this entire time haha
Yeah I use Alt+Click all the time. Another useful one is hold Alt then drag mouse to select multiple rows in any area, full or partial, then start typing to replace the text on all of those lines at once
its awesome video where we can get everything about WPF for begginer...thankyu sir
ay.link/wpfaps
large wpf applications
a
Awesome content, your knowledgement is impressive! Thanks for sharing! I'm so glad to know what we can do with WPF! Please, dont stop!
Thanks
ay.link/wpfaps
large wpf application
Great tutorial!! Thank you for creating this series. It has been a big help to me getting started with WPF
No problem. Glad it has been useful
ay.link/wpfaps
large wpf application
Probably the best, most concise video I've seen. Just what I needed. Cheers mate.
ay.link/wpfaps
large wpf applications
I'm a noob in wpf and specially in mvvm architecture but i think that with your tutorial i will able to learn much, if you have done a course or if you'll do i'll be glad to buy it cause you're a top teacher!
Thanks. I will likely be doing a few full courses on Udemy soon and giving teaching a go at full time. Then once I am earning enough to pay my bills the rest will be free on RUclips
@@AngelSix Sir, Thank you for the tutorial I'm new to programming and I think this has helped me a lot. I will be looking out for more of your tutorials on here. God bless you
Perfect tutorial video..this is what i searched for..
Glad it was helpful!
Great Video! I look forward to digging into the rest of this series. I've made a WPF application in my software dev class and it used View Models and some other advanced concepts but I still learned quite a bit from watching this video. Thanks!
That's awesome. Glad you can still learn some stuff when you already have experience in the area
ay.link/wpfaps
large wpf applications
ay.link/wpfaps
large wpf applications
This video is extremely good. Thanks for your effort.
WOW! i Finished this first tutorial and im impresive, i learn more in this video than my last 10 days reading a book and watching Udemy course, thanks for such amazing content
ay.link/wpfaps
large wpf application
Best WPF tutotrial on youtube !! Thank you so much.
thanks
ay.link/wpfaps
large wpf applications
Who watched this and did not like it? Wtf LOL. GJ and TY for the tips.
Your welcome :) Glad you liked it
Dude... was looking something like this for years... thanks mate..
No problem
Good explanation for beginners . This helped me alot. Thankyou. Do more videos for beginners 😊👍
If only you uploaded a few months earlier, would've made one of my modules way less of a hassle. Thanks anyway, helping me a lot with my final project this year.
Your welcome
Finally I found something that is really on my level of learning. Thank you.
one of the highest quality tutorials in the whole of my life. How can I compensate for you?
thx for all your time
Hi, you can watch all advertisement posted on his videos on RUclips so that it helps to generate some money. And you can support him on Patreon :)
Thanks. Glad I could help. To support me see angelsix.com/donate
Cuts through all of the total bullshit on this topic! Wonderful video. Clear, concise and demonstrates how to actually get something done in XAML.
Thanks. Glad you like it
Very Good, Nicely Explained about WPF
Finally a good tutorial about WPF, thanks men.
No problem
ay.link/wpfaps
large wpf applications
a