xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="WpfApplication1.RoutedEventSource">
//File:Window.xaml.cs
using System.Windows;
using System.Windows.Controls;
namespace WpfApplication1 {
public partial class RoutedEventSource {
void HandleClick(object sender, RoutedEventArgs e)
{
Button srcButton = e.Source as Button;
srcButton.Width = 200;
}
}
}