If you add a new location to the list of locations or edit an existing location, a message is displayed that is in the AddEditLocationView.xaml file. The message is displayed using the ShowDialogWindow window method in the LocationPageEditorViewModel.cs file.

The UI in the AddEditLocationView.xaml file consists of:

·     A dialog frame named DialogFrame, which includes the following elements:

·     A title, which you configure using the DialogTitle attribute of the dialog frame

·     An OK button, which sets the return status as for the Approved property to True (The return status is checked in the AddLocationCallback method in the LocationPageEditorViewModel.cs file to determine whether the user clicked OK.)

·     A Cancel button, which sets the return status as for the Approved property to False (The return status is checked in the AddLocationCallback method in the LocationPageEditorViewModel.cs file to determine whether the user clicked Cancel.)

·     A WPF element that contains:

·     A label, which you configure using the Content attribute

·     A text box, which is bound to the Data element with the name Location in the UDI configuration file (the Config.xml file in the example)

Related Topics

Review the User Interface Used to Modify the List of Possible Locations