Create a widget for adding users
    This widget enables you to add new users by determining their name, password, and locale.
- Create the CreateUserWidget panel:- InProject view, right-clickUIand select .
- Hover-over the panel, select, and enter CreateUserWidget. CreateUserWidget.
 
- Add labels:- Add three labels by right-clickingUserDetailsand selecting .
- Rename the labels by hovering-over each label, selecting, and entering: - NameLabel
- PasswordLabel
- LocaleLabel
 
- SelectNameLabeland in thePropertiespane, in theTextfield, enterName.
- SelectPasswordLabeland in thePropertiespane, in theTextfield, enterPassword.
- SelectLocaleLabeland in thePropertiespane, in theTextfield, enterLocale.
 
- Add a text box for user password:- In theProject viewpane, right-clickCreateUserWidget (type)and select .
- Hover-over the text box, select, and enter PasswordBox. PasswordBox.
- In thePropertiespane, set theContent Typeproperty toPassword.
 
- Add a text box for user name:- In theProject viewpane, right-clickCreateUserWidget (type)and select .
- Hover-over the text box, select, and enter NameBox. NameBox.
 
- Create a locale picker:- In theProject viewpane, right-clickCreateUserWidget (type)and select .
- Hover-over the combo box, select, and enter LocaleCombo. LocaleCombo.
- Create a dynamic link between theModelproperty and .For more information about dynamic links, see Create dynamic links.
 
- Create the Add User button:- In theProject viewpane, right-clickCreateUserWidget (type)and select .
- Hover-over the button, select, and enter CreateButton. CreateButton.
- In thePropertiespane, set theTextproperty toAdd User.
- In theEventspane, next toMouseClick event, selectand select 
- Create a dynamic link between thenameproperty and .For more information about dynamic links, see Create dynamic links.
- Create a dynamic link between thepasswordproperty and .
- Create a dynamic link between thelocaleIdproperty and .
- Next toMouseClick event, selectand select . 
- Create a dynamic link between theNewPanelPathproperty and .
 
- Create the Cancel button:- In theProject viewpane, right-clickCreateUserWidget (type)and select .
- Hover-over the button, select, and enter DiscardButton. DiscardButton.
- In thePropertiespane, set theTextproperty toCancel.
- Next toMouseClick event, selectand select . 
- Create a dynamic link between theNewPanelPathproperty and .For more information about dynamic links, see Create dynamic links.
 
- Arrange the interface elements.

Fornire un feedback