Skip to content

Instantly share code, notes, and snippets.

@mrlacey
Created November 17, 2020 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrlacey/56d7262c19f50c5bdfcf291ea1fc69a9 to your computer and use it in GitHub Desktop.
Save mrlacey/56d7262c19f50c5bdfcf291ea1fc69a9 to your computer and use it in GitHub Desktop.
FestiveEditor - 5
// TopLeftHollyAdornment
// Place the image in the top left of the Viewport
Canvas.SetLeft(this.image, this.view.ViewportLeft);
Canvas.SetTop(this.image, this.view.ViewportTop);
// TopRightHollyAdornment
// Place the image in the top right of the Viewport
Canvas.SetLeft(this.image, this.view.ViewportRight - ImageWidth);
Canvas.SetTop(this.image, this.view.ViewportTop);
// BottomLeftHollyAdornment
// Place the image in the bottom left of the Viewport
Canvas.SetLeft(this.image, this.view.ViewportLeft);
Canvas.SetTop(this.image, this.view.ViewportBottom - ImageHeight);
// BottomRightHollyAdornment
// Place the image in the bottom right of the Viewport
Canvas.SetLeft(this.image, this.view.ViewportRight - ImageWidth);
Canvas.SetTop(this.image, this.view.ViewportBottom - ImageHeight);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment