From the course: Windows Presentation Foundation: 3 Events and the Event Model
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Wire up event handlers with the Properties window
From the course: Windows Presentation Foundation: 3 Events and the Event Model
Wire up event handlers with the Properties window
- [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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Understand routed events6m 3s
-
Understand event signatures6m 56s
-
Understand the RoutedEventArgs5m 1s
-
Wire up event handlers in XAML4m 58s
-
Wire up event handlers with the Properties window4m 18s
-
Wire up event handers in code4m 4s
-
Understand event bubbling5m 17s
-
Understand event tunneling3m 51s
-
Suppress events as they traverse the element tree5m 22s
-
-
-
-