Skip to content

Picture

Displays an image.

Ancestry

BaseElement - VisualElement - Image

Properties

ImageSource (string) (accepts variables) Path of the image, on disk or on the internet (url)

Stretch (enum ImageStretch) Describes how content is resized to occupy its allocated space.

“None”: The content retains its original size. “Fill”: The content is resized to fit the destination dimensions. The proportions are not preserved. “Uniform”: Content is resized to fit within the destination dimensions while maintaining its native proportions. “UniformToFill”: The content is resized to fit the destination dimensions while maintaining its native proportions. If the proportions of the destination rectangle differ from those of the source, the source content is cropped to fit within the dimensions of the object.

ImageMaxWidth (int) Max image size

ImageMinWidth (int) Min image size

ImageMaxHeight (int) Max image size

ImageMinHeight (int) Min image size

See as well

VisualElement