logo search
Учебник_ПОА

How to: Create Event Handlers for wpf Controls

You can add the default event handler for many controls by double-clicking the control in Design view. You can also create an event handler for controls in a Windows Presentation Foundation (WPF) application by adding an attribute to the control's XAML representation. This XAML markup defines the event and the name of the method that will handle the event. Then, you write the code for the method in the Code Editor.