FarPoint.Win Assembly > FarPoint.Win Namespace > ElementControl Class : BackgroundImage Property |
Gets or sets the background image for the control.
'Declaration Public Overridable Shadows Property BackgroundImage As Picture
'Usage Dim instance As ElementControl Dim value As Picture instance.BackgroundImage = value value = instance.BackgroundImage
public virtual new Picture BackgroundImage {get; set;}
Controls can display pictures in layers. The first layer consists of a foreground picture, next comes the content of the control, such as text and a picture, then comes the background picture, and finally, the "back" of the control, which displays the background color.
Set this property to specify the background picture layer.
This property is available at run time only.
Set the ForegroundImage property to specify the foreground picture layer. Set the Picture property to specify the picture in the content layer.
Set other features for the background picture using the following Picture class properties:
If the application changes the background picture, the BackgroundImageChanged event occurs.
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8