Example on using WaitTill Method

Scenario: After clicking on a Button I get a Modal ChildWindow, I need to wait until i get that window.
The problem is i am using sleeps to wait for the window appears, I know it is not a reliable solution, please suggest an alternative...