In this example, the designer dialog fires a custom event, which the UI registers for.
This is the UI.
This is the dialog.
Add Element
Name:
Label: