State Manager API example
For example, in Login/Register dialog, an existing user signs in with his user name and password, but if a new user attempts to register, an additional field (Confirm) is displayed, and button labels and methods are changed when the user clicks the To register link: Figure 4.7. Login Dialog Figure 4.8. Register Dialog