WPF C# Tutorial

  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  x:Class="WpfApplication1.RoutedEventSource">
  
    
      
      
      
    
  

  Button 1
  Button 2
  Button 3    

//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;
        }
    }
}