Auto Size

Sport1Sport2Sport3Sport4
Settings
Description

C1LightBox can resize automatically according to the content image's width and height. This makes sure images are displayed with the correct width/height ratio.

Enabled automatic resizing by setting the AutoSize property to True.

The ResizeAnimation property determines the animation effect when the container changes the size. ResizeAnimation.Animated property supports the following values:

  • Sync - Resize both the width and height at the same time.
  • Width to Height - Resize the width in advance of height.
  • Height to Width - Resize the height in advance of width.
  • None - No animation.

Please notice that the auto-size feature only works for Image content.

Documentation