SwapChainPanel.CompositionScaleX Property

Definition

Gets the x-axis scale factor of the SwapChainPanel.

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

Property Value

Single

float

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

Remarks

The CompositionScaleX 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