-
-
Notifications
You must be signed in to change notification settings - Fork 340
PixelLayout
cwensley edited this page Sep 1, 2012
·
2 revisions
The Pixel Layout provides a way to position your controls based on pixel co-ordinates.
Note: Using the pixel layout to position standard controls is highly discouraged, as each control may be different sizes based on the platform. It is highly recommended to use the [TableLayout] or [DynamicLayout] when using standard controls, as they will auto fit to the size of each control.
var layout = new PixelLayout (myContainer);
var label = new Label { Text = "Hello!" };
layout.Add (label, 10, 10);
// during runtime you can move controls
layout.Move (label, 10, 100);