Toggle button (window xml dialog)

Hi guys,

I am using the toggelbutton tag on the xml to create a control, but couldn’t find a way to get its value in the dialog code.

How can I do that?
Should I use a different control for on/off functionality?

Thx,
Yohay