In this sample, clicking the SplitBar's button will collapse the second panel.
Panel 1
Panel 2