protected void CellRightClick(object sender, MouseButtonEventArgs e) { Button button = (Button)sender; int[] coord = (int[])button.Tag; controller.RightClick(coord[0], coord[1]); }