Namespace: DeltaEngine.Scenes.Tests.Controls
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void Test() { var centerButton = new Button(ButtonDrawArea, "Click Me"); var rnd = Randomizer.Current; centerButton.Clicked += () => centerButton.TopLeft = new Vector2D(rnd.Get(0.3f, 0.6f), rnd.Get(0.3f, 0.6f)); new Button(ButtonDrawArea) // button above center button { BottomMargin = new Margin(centerButton, Edge.Top, 0.01f), RightMargin = new Margin(centerButton, Edge.Right, 0.05f) }; centerButton.Click(); }
See Also