private void OnTryAgainPressed(object sender, RoutedEventArgs e) { IProgressable item = (e.Source as MenuItem).DataContext as IProgressable; item.DoWorkAsync(); }