Source
..\..\UIRes\Stack.bin
GacUI.h
Demo
{ var radioButton = cast (SelectableButton*) sender.RelatedControl; if (radioButton.Selected) { stackLayout.Direction = radioButton.Text == "Horizontal" ? Horizontal : radioButton.Text == "Vertical" ? Vertical : radioButton.Text == "ReversedHorizontal" ? ReversedHorizontal : ReversedVertical; } }
{ for (stackItem in stackLayout.StackItems) { stackItem.ExtraMargin = {}; }

var selectedItem = cast (StackItem*) sender.Parent; selectedItem.ExtraMargin = {left:10 top:10 right:10 bottom:10}; stackLayout.MoveChild(selectedItem, stackLayout.StackItems.Count - 1); }

composeType:MinSize
composeType:MinSize
composeType:MinSize
composeType:MinSize
composeType:MinSize
composeType:Percentage percentage:1.0
composeType:Percentage percentage:1.0