HorizontalStretch Property

Specifies whether the control add-in can dynamically increase its width. This setting is optional.


Use this property when the visual content of the add-in is designed to remain usable when width is increased.

Applies to

  • Control add-in objects

Property Values

True if the control add-in is allowed to stretch horizontally. The default value is false.


HorizontalStretch is typically used together with the MaximumWidth property. If HorizontalStretch is true but MaximumWidth is not set, the control add-in can stretch indefinitely.

Code Example

RequestedWidth = 600;
HorizontalStretch = true;
MaximumWidth = 800;

See Also

Control Add-In Object