To have more control over the name of an event handler in the XAML use the Visual Studio Properties window to subscribe to an event.
- [Narrator] The property window in Visual Studio…is very useful for looking at the values…that are set for properties and any element…defined in your XAML.…I'm in this main window XAML file.…I'm looking at these different elements…like this Image element,…and I can see the properties.…Now if you don't see the property window,…you can bring it onto the screen by going…to View, scrolling down near the end…and choosing Properties Window.…Now this currently is set to show me…the properties by category.…And I can select my image and then go to Common…and see the Source of the image is this…Pretzel.jpg file and I can see the values…for stretch and so on.…
So not only can I look at these values,…but I can also edit them.…This is very useful when you're not looking…at your XAML file, say that you've switched…over to just looking at the designer only.…So you look at the designer and you look…at the property window to see the values.…Then you can also change this, like this.…I can go to the Stretch property,…choose to set the stretch to None…
- Recognize routed events.
- Explain event signatures.
- Determine how to wire up event handlers.
- Define event bubbling and event tunneling.
- Break down how to program mouse events.
- Show how to program keyboard and ink events.
Skill Level Intermediate
Learning Visual Studio Team Serviceswith Jose Miguel Rady Allende1h 17m Intermediate
1. Understand the Event Model
2. Mouse Events
3. Keyboard and Ink Events
Next steps1m 34s
- 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.