Implemented StackPanel.