Join Anton Delsink for an in-depth discussion in this video WPF button and event handler, part of Object Oriented Programming with C#.
- [Narrator] Now like with our previous examples,…we can of course interact with wpf…in similar way in which we interact with windows forms…in the classic sense.…Let me add a button here from the toolbox,…drag and drop the button.…Or copy and paste a grid and row again, CRTL+C, CTRL+V,…and now this will be row zero one two, the last row.…You can see the gray already showing up in the cell there.…This'll be column number one,…and I'll close the bracket without the slash bracket…just the bracket itself.…
It adds the closing element for me there,…or there's button click me.…Now again, I'll use the designer there to help me out.…Press F4 for the properties,…and because I have the button selected here,…I'll go to the lightning bolt at the top right.…That should be familiar.…It lists all the possible event handlers…for this type of object.…I'll double click on click here in the text box,…I'm not even going to type the name I'll just double click.…And you can see very similar to Windows Forms,…here we have a class called Main Window,…
- Abstract classes
- Processing text with StreamReader
- IEnumerable and yield return
- Windows Forms controls
- Windows Forms with and without the designer
- Adding, organizing, and testing forms
- Creating classes
Skill Level Intermediate
C# Object-Oriented Programming Tips and Trickswith Jesse Freeman58m 39s Intermediate
What you should know1m 10s
1. Theory vs. Practice
2. Examples from .NET
3. Examples from Windows UI
4. Examples from Board Games
5. Examples from the Web
Next steps1m 13s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.