Created
November 17, 2020 13:03
-
-
Save mrlacey/56d7262c19f50c5bdfcf291ea1fc69a9 to your computer and use it in GitHub Desktop.
FestiveEditor - 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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