Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("Main") 'Load the layout file.
MainForm.Show
Dim Obj As Reflector
Obj.Target = MainForm.RootPane
Obj.AddChangeListener("pane", "layoutBoundsProperty")
End Sub
Private Sub pane_Changed(Old As Object, New As Object)
Log("changed")
End Sub