void tile_MouseLeftButtonDown(object sender, TappedRoutedEventArgs e) { if (isMoving) return; saveTile = sender as Tile; savePoint = e.GetPosition(Tiles); }
private void Tile_PointerPressed(object sender, PointerRoutedEventArgs e) { if (isMoving) return; saveTile = sender as Tile; savePoint = e.GetCurrentPoint(Tiles).Position; }
public Tile FindTile(int x, int y, Tile origin) { foreach (Tile item in Tiles.Children) { if (item.IndexX == x && item.IndexY == y) { if (origin == item) continue; return item; } } return null; }