SceneAspectRatio Enum

How a view box keeps its proportions in its viewport (SceneViewBox.Alignment), as the SVG preserveAspectRatio.

public enum SceneAspectRatio

Fields

NameValueDescription
None0The box is stretched to the viewport, as none.
XMinYMin1The box keeps its proportions, aligned on the left and the top of the viewport.
XMidYMin2The box keeps its proportions, centered horizontally, aligned on the top of the viewport.
XMaxYMin3The box keeps its proportions, aligned on the right and the top of the viewport.
XMinYMid4The box keeps its proportions, aligned on the left, centered vertically.
XMidYMid5The box keeps its proportions, centered in the viewport. The default, as in SVG.
XMaxYMid6The box keeps its proportions, aligned on the right, centered vertically.
XMinYMax7The box keeps its proportions, aligned on the left and the bottom of the viewport.
XMidYMax8The box keeps its proportions, centered horizontally, aligned on the bottom of the viewport.
XMaxYMax9The box keeps its proportions, aligned on the right and the bottom of the viewport.