This video is far more than basics. This video gives you a solid foundation to start building WPF the right way. I am so glad you explain every little button press and detail of what you're doing as it made this refreshingly easy to follow. I felt lost trying to layout my new app. But now, I just put everything in grids and stack panels and it's beautiful lol. Such great advice!
no it doesn't... by 47:00 he is fumbling for words to explain why things aren't working... he does not understand the fundamentals of WPF! He is learning as he is going, and he's very much in need of an expert to take over.
@@HOWYOUDOIN884 Everyone can do mistakes sometimes, we're humans, although he actually explained really well all the concepts I didnt understand by far from WPF in a fast and clean way with an APP example.
@@jordimorenosanchez584 well it's an example of the type of frustrating and of thing. For example, there's a billion homemade videos on object oriented programming, especially from India, where the person is just trying to give a good impression that they are giving the wrong information. Which to me makes me think that nobody in India is properly learned object going to programming, but they think they have. Anyway I've decided the world is a crazy place and I don't like it. 😂
@@HOWYOUDOIN884 Yeah, with time you'll learn articles > videos sometimes, but videos at first are helpful to gather some info, then later you can contrast it with articles / docs, that's how I actually learnt to read docs and I bet anyone on the programming world did the same, not with videos but maybe getting taught.
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!😆
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 .
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!
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.
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
Hello again, I also figured out the code for the UnChecked method for these checkboxes. Here it is: private void checkBox_Unchecked(object sender, RoutedEventArgs e) { string text = txtLength.Text; string[] texts = text.Split(' '); CheckBox checkBox = sender as CheckBox; string content = checkBox.Content + ""; if (text.Contains(content)) { int index = txtLength.Text.IndexOf(content); int count = content.Length; string newText= txtLength.Text.Remove(index,count); txtLength.Text = newText; } }
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
I am using Visual Studio 2015, I downloaded the codes form github repository. I tried running the codes, to learn along with your videos, but I getting a flown error on virtually every file. I am a newbie, does visual studio 2015 not support your files?
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?
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.
Excellent tutorial! Thank you for making this. This is the best WPF application I've seen on RU-vid. Looking forward to part 2. Also looking forward to more WPF / C# applications!
Actually it's nothing like Netflix. Netflix wastes your money and time. These RU-vid channels educate you and help you better yourself and your career.
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; } }
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.
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!
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.
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!
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.
can we specify the sender type? like so private void FinishDropdown_SelectionChanged(ComboBox sender, SelectionChangedEventArgs e){ string selected = ((ComboBoxItem)sender.SelectedValue).Content; }
I rewrote the reset button by writing an uncheck function and making it so that no matter what checkboxes you have in there or what their names are, it will uncheck them and make the appropriate changes in the textbox: private void ResetButton_Click(object sender, RoutedEventArgs e) { IEnumerable boxes = from CheckBox checkbox in this.CheckBoxes.Children where checkbox.IsChecked == true select checkbox; foreach (CheckBox box in boxes) { box.IsChecked = false; Checkbox_Unchecked(box, null); } } private void Checkbox_Unchecked(object sender, RoutedEventArgs e) { String text = ((CheckBox)sender).Content + " "; int position = this.LengthText.Text.IndexOf(text); this.LengthText.Text = this.LengthText.Text.Contains(text) ? this.LengthText.Text.Remove(position, text.Length) : this.LengthText.Text; }
Great video, great course, but am I the only one who keeps expecting him to say, "That's what your wife said, Trebek!" He sounds just like Daryl Hammond's imitation of Sean Connery.
Shortcuts for textblocks didn't want to work no matter what I tried, it would still think that textblock didn't have an end and it was corrupting my code. Had to do the full version of them. edit. I missed "equals" after Text.
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.
I'm trying to figure out the unchecked part of the checkboxes, where the length text will remove an item if unchecked in the code behind. I'm struggling to figure out how to remove an unchecked item. Can you help me?
Love this series. Thank you for creating it. I have a question: I have watched many tutorials on how to get started with WPF and I have seen people use different techniques to achieve the UI goals they set for the project. Two different styles kind of struck my curiosity. The first one is the method(s) you're using in this series and the other is what I'll call a "Grid" style approach, very similar to how Bootstrap works for responsive web UI development. What I'm curious about is, is there a sort of best practices when deciding how you're going to build out your UI and what things should be considered when creating a dynamic (i.e. single-page) UI?
I couldn't find anything on the web for the unchecked event which would delete the text from you LengthText.Text block. Did you ever figure it out? 46:01 in.
pressing space after on my system it just does a space. I tried tab, shift tab, alt tab...and just gave up and manually typed --> lol Very good tutorial. Although the wheels kind of came off near the end. Thx.
Is it possible to create this on linux using Visual Studio Code with .net core, that can be build to execute on linux and build as ".exe" self-contained?
this gets to be hilarious... by 47:00 he is kinda in over his head and doesn't really know what he is doing is really doesn't understand the fundamentals of WPF and yet he maintains such a confident voice.
if you want a cleaner way to reset checkboxes - i would add individual checkboxes to a list of type checkbox and then in the reset btn logic foreach over the list and set each checkbox to false
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
How do I get the "Troubleshooting tips" on 47:29. It's a bit tricky to write what should be converted with FinishDropdown_SelectionChanged() I would make the same mistakes like xxx.Text= (string)((ComboBox)sender).SelectedValue;
Hello, Thank you for the tutorial, Just I have a question: Can you give us a tutorial how to manage with reporting in MVVM wpf applications, Best regards,
I am a Winform developer. Do I have to write the whole designer code??? Its like designing html pages in 1990's where you have to type everything by hand. I will stick with Winforms.
Just wanted to share a quicker way to uncheck all the checkboxes. This only works if the container has no other types of containers inside of it. private void ResetButton_Click(object sender, RoutedEventArgs e) { foreach (Control ctl in CheckBox1.Children) { if(ctl.GetType() == typeof(CheckBox)) { ((CheckBox)ctl).IsChecked = false; } } foreach (Control ctl in CheckBox2.Children) { if (ctl.GetType() == typeof(CheckBox)) { ((CheckBox)ctl).IsChecked = false; } } The each stack panel has been named other than that it's all the same.
In Englisch, gibt es nicht genug WPF Tutorials in Englisch? Ein paar gute in Deutsch wären sicher nicht unerwünscht. Vor allem wenn ich bemerke, das dieses Tutorial richtig gut ist. Aber Englisch...
Subscribed Already! Thank you so much. I hope you keep great videos coming our way. With time, please move on to the most advance levels of it. We would love to learn more and more from you. Thanks again.
Definitely. As we progress we will be making the entire full app. We will be connected to a server we also make, and creating an entire chat application that can easily rival WhatsApp. You will learn it all
Hi everyone, how can i delete the selected Content of the checkboxes in the LengthText, i use : this.LengthTextbox.Text -= (string)((CheckBox)sender).Content; but this is the Error Way, hope someone help !!!, Thank you in advance :'(
While doing this tutorial I encountered a problem. In the "status and revision" grid the status stack panel using grid.column="0" nothing showed. I carefully scrutinized the typing and all was well. I added another column definition with a width of 1 and changed status to 1 and revision to 2 and it acted appropriately. I am using VS2019. Ι had the same issue with the checkboxes, I could not use column "0".
Hello, I have created an interface and now i need to look how to connect to a database, where i need to look, to see how it's done, or a good example ? thank you
I'm sorry, but anyone who teaches WPF by "I know all the commands, so I'll just type them in.." is not appropriate for the newbies, that it purports to be. You should not have to know to type in "Stack Panel" or any of the other commands :(
Come again? So someone who teaching WPF should not know WPF? Or are you saying I shouldn't tell you what a StackPanel is and instead just say type along kids?
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! 💯
One question, why do you type "this." before everything? If you notice, the editor greys it out, meaning you don't need to type it. Or is there some specific reason you do it? PS. Sorry for taking up all your time with a bunch of comments. :D
+CodeBit it was my preference for years that I recently changed. Typing this. for any variable that's part of the class it's used within makes it explicitly obvious that the variable is local to the class. However in future videos I change my preference and remove it.
Since this works similar to HTML, does it have something similar to CSS where I can create a style that gets applied to all buttons and be able to switch out different styles?
Yes and no. The XAML is a markup language (ML) so similar to HTML. Styling however is not technically the same. You can make styles and apply to components, but you don't tend to switch them out the same. You tend to bind the specific style properties to view models or value converters and change the styles that way
Very interesting how you did the message box part. Does "string {variable}" across all C# or is it just a WPF feature? I have never seen someone do it in such a way.
$ in front of a string like $"some string" means inside that string you can use {} to break out into code and return anything that will convert to a string. It is a C#7 feature so if you are using the latest VS you will have it everywhere