Namespace: DeltaEngine.Platforms.Tests
Assembly: DeltaEngine.Platforms.Tests (in DeltaEngine.Platforms.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Platforms.Tests (in DeltaEngine.Platforms.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, Category("Slow")] public void ChangeOrientation() { var window = Resolve<Window>(); var line = new Line2D(Vector2D.Zero, Vector2D.One, Color.Green); window.BackgroundColor = Color.Blue; new Command(() => window.ViewportPixelSize = new Size(800, 480)).Add(new KeyTrigger(Key.A)); new Command(() => window.ViewportPixelSize = new Size(480, 800)).Add(new KeyTrigger(Key.B)); RunAfterFirstFrame(() => { var screen = ScreenSpace.Current; var startPosition = screen.Viewport.TopLeft; var endPosition = screen.Viewport.BottomRight; window.Title = "Size: " + window.ViewportPixelSize + " Start: " + startPosition + " End: " + endPosition; line.StartPoint = startPosition; line.EndPoint = endPosition; }); }
See Also