private void RightClick_Executed(object sender, ExecutedRoutedEventArgs e) { var x = Grid.GetRow((UIElement)sender); var y = Grid.GetColumn((UIElement)sender); Game.Mark(x, y); }