Examples/Event.ps1

# Example showing how to add an event to an object.

$w=Window {
    TextBox Fred -property @{MinWidth=50}
    CheckBox Barney | HandlesEvent Checked {$Fred.Text=$fred.Text.ToUpper()}
} -ShowForValue