Try using FindName
:
private void PlayPauseButton_Click(object sender, RoutedEventArgs e)
{
Image image = (Image)PlayPauseButton.Template.FindName("PlayPauseImage", PlayPauseButton);
}
Note:
Always use FindName
only when the control will be fully loaded, otherwise it will not find it and give null.
Also for this event has: