public void moveTilesView(SeppukuMapScroll.ScrollDirections direction, double offset) { double newX = Canvas.GetLeft(this.MapTiles); double newY = Canvas.GetTop(this.MapTiles); switch (direction) { case ScrollDirections.up: { newY += offset; break; } case ScrollDirections.down: { newY -= offset; break; } case ScrollDirections.left: { newX += offset; break; } case ScrollDirections.right: { newX -= offset; break; } } updateView(newX, newY); }
private void onScrollEnter(object sender, MouseEventArgs e) { ScrollButton button = (ScrollButton) sender; button.Opacity = 1; this.currentDirection = button.Direction; scrollAnim.Begin(); }
private void onScrollEnter(object sender, MouseEventArgs e) { ScrollButton button = (ScrollButton)sender; button.Opacity = 1; this.currentDirection = button.Direction; scrollAnim.Begin(); }