Salesforce

Wallpaper Style (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Wallpaper Style (Magic xpa 4.x)

Controls the way that the wallpaper fits the form. The valid values are:

Value

Description

Tiled

The image is copied onto the form as many times as needed to fill its entire area.

Copied

The image is copied onto the form as is. If the image is larger than the form, it is cropped. If it is smaller than the form, the uncovered part of the form is painted with the background color.

Scaled to Fit

The entire image is scaled onto the form while maintaining the original aspect ratio of the image. This may result in part of the form remaining uncovered, unless the aspect ratios of the image and the form are identical.

Scaled to Fill

The image is scaled to fill the entire form while maintaining the original aspect ratio of the image. This may result in only part of the image being seen on the form, unless the aspect ratios of the image and the form are identical.

Distorted Scaling

The image is shrunk or stretched to fill the entire area of the form. The resulting image will be distorted, unless the aspect ratios of the image and the form are identical.

Platform Specific

On Android and iOS:

  • It is not recommended to use an image defined with the Copied style since it is not factored according to the device DPI, so it will have different sizes in different devices.

  • In the Scaled to Fit style, the image is placed at the center of the Image control.

On Android only:

  • In the Scaled to Fill style, the image is placed at the center of the Image control.

Reference
Attachment 
Attachment