Share via


XRStretch (Windows Embedded CE 6.0)

1/6/2010

This enumeration describes how content is resized to fill its allocated space.

Syntax

enum XRStretch{
    XRStretch_None=0,
    XRStretch_Fill=1,
    XRStretch_Uniform=2,
    XRStretch_UniformToFill=3
};

Members

  • XRStretch_None
    The content preserves its original size.
  • XRStretch_Fill
    The content is resized to fill the destination dimensions. The aspect ratio is not preserved.
  • XRStretch_Uniform
    The content is resized to fit in the destination dimensions while it preserves its native aspect ratio.
  • XRStretch_UniformToFill
    The content is resized to fill the destination dimensions while it preserves its native aspect ratio. If the aspect ratio of the destination rectangle differs from the source, the source content is clipped to fit in the destination dimensions.

.NET Framework Equivalent

System.Windows.Media.Stretch

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Silverlight for Windows Embedded Enumerations