private void ButtonNegative_OnClick(object sender, RoutedEventArgs e) { var not = (PlainNotification)((Button)sender).DataContext; this.AncsManager.OnAction(not, false); } }