Implemented Panel and StackPanel.