....
Wait For Button_Click
Log("I stole the click event...1")
Log("I stole the click event...2")
Log("I stole the click event...3")
Log("I stole the click event...4")
Log("I stole the click event...5")
Log("I stole the click event...6")
End SUb
Sub Button_Click
Dim duration As Int = 500
Button.SetLayoutAnimated(duration,0, MainForm.RootPane.Height - Button.PrefHeight, Button.PrefWidth, Button.PrefHeight)
End Sub