Sdílet prostřednictvím


SwapChainPanel.CompositionScaleY Property

Definition

Gets the y-axis scale factor of the SwapChainPanel.

public:
 property float CompositionScaleY { float get(); };
float CompositionScaleY();
public float CompositionScaleY { get; }
var single = swapChainPanel.compositionScaleY;
Public ReadOnly Property CompositionScaleY As Single

Property Value

Single

float

The y-axis scale factor of the SwapChainPanel. A value of 1.0 means no scaling is applied.

Remarks

The CompositionScaleY scale factor is applied to the swap chain content when it's rendered to the screen and composited into the XAML content. The scale factor is derived from calculating the render transformations (implicit or explicit) applied to the SwapChainPanel and its ancestors.

The scale factor will be an estimate if a Projection property value is present on the SwapChainPanel or one of its ancestors.

Check this property any time you are handling CompositionScaleChanged (CompositionScaleChanged doesn't have event data, but if it fires it means that CompositionScaleX, CompositionScaleY, or both have changed values on this SwapChainPanel).

Applies to

See also