StretchPolicy

StockSharp.Xaml.Diagram.GXDiagram

This lists the policies used to govern if and how the DiagramPanel's Scale is set automatically.

Fields

None
public const StretchPolicy None
value = StretchPolicy.None

The default policy, where the HorizontalContentAlignment and VerticalContentAlignment control the effective positioning of the parts in the panel when the DiagramBounds fits within the panel's viewport. The Scale will not change.

Uniform
public const StretchPolicy Uniform
value = StretchPolicy.Uniform

The Position and Scale are automatically adjusted so that the DiagramBounds is fully visible in the panel. The new Scale will not be greater than 1.

UniformToFill
public const StretchPolicy UniformToFill
value = StretchPolicy.UniformToFill

The Position and Scale are automatically adjusted so that one of the DiagramBounds's dimensions is fully visible in the panel. The new Scale will not be greater than 1.

Unstretched
public const StretchPolicy Unstretched
value = StretchPolicy.Unstretched

This is the same as None.