AnchoringTests PercentHintLandscapeImagePortraitScreen Method Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Tests.Controls
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void PercentHintLandscapeImagePortraitScreen()
Examples

[Test, CloseAfterFirstFrame]
public void PercentHintLandscapeImagePortraitScreen()
{
    Resolve<Window>().ViewportPixelSize = new Size(600, 800);
    anchoring.PercentageSpan = 0.4f;
    AssertNearlyEqual(new Rectangle(0.35f, 0.375f, 0.3f, 0.25f),
        anchoring.CalculateDrawArea(landscapeControl));
}
See Also