If you want the source out of the event arg you have to set it the right type : it has to be a RoutedEventArgs instead.