MaximumWidth Property

Specifies the maximum size in pixels to which the control add-in can dynamically increase its width.

Applies to

  • Control add-in objects

Value Type

  • Integer

Property Values

The default is the integer’s maximum value. If HorizontalStretch is true but MaximumWidth is not set, the control add-in can expand indefinitely.

Dependent Property

This setting only applies if HorizontalStretch is set to true.


Use this property when the visual content of the add-in is no longer usable or no longer visually appealing beyond a certain size.

Code Example

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

See Also

Control Add-In Object