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 DrawControlsAnchoredToScreenCornersAndEdges() { new Button(ButtonDrawArea, "Left") { LeftMargin = Left }; new Button(ButtonDrawArea, "Right") { RightMargin = Right }; new Button(ButtonDrawArea, "Top") { TopMargin = Top }; new Button(ButtonDrawArea, "Bottom") { BottomMargin = Bottom }; new Button(ButtonDrawArea, "Top\nLeft") { TopMargin = Top, LeftMargin = Left }; new Button(ButtonDrawArea, "Top\nRight") { TopMargin = Top, RightMargin = Right }; new Button(ButtonDrawArea, "Bottom\nLeft") { BottomMargin = Bottom, LeftMargin = Left }; new Button(ButtonDrawArea, "Bottom\nRight") { BottomMargin = Bottom, RightMargin = Right }; }
See Also