View Background

I am trying to put a watermark on my views background. It seems no matter what image I put there it displays as the size of the image. Stretch and Centre seem to have no effect.

Am I missing something?
Dave

Are you talking about the Control.BackgroundImageLayout property? That was introduced in .NET 2.0, but we never implemented that in GoView.

I suggest that you instead create a GoImage showing the same image, add it to the GoView.BackgroundLayer, and size and position it the way you want. You'll need to implement a GoView.PropertyChanged event handler to handle changes to GoView.DocPosition or GoView.DocScale. That won't implement the ImageLayout.Tile enum value, though.
Alternatively you can override GoView.PaintBackgroundDecoration to do what you want. See http://www.nwoods.com/forum/forum_posts.asp?TID=20
1 Like