Mega Code Archive
Find source element of an element in event handler by casint
//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;
}
}
}