Window xml question

Guys,

Is there an optional to use an edit control were the input will come from a custom dialog that I will create ?
I cannot find the way to define it via the xml….
What should be the interface of such dialog? How should I return the selected value?

Thx,
Yohay