Skip to end of metadata
Go to start of metadata

This example shows how to add an event handler to a Button in XAML and write the handler that can process the routed event data.

Example

Description

Routed events typically follow one of two routing strategies, bubbling or tunneling. This example focuses on the bubbling event and shows how to handle the Click event of a Button.

Code

XAML
C#