The following topic relate to extensibility in XWT. There are two types of extensibility: Support of new kind of user-defined UI element and Support register IMetaclass factory via API or EP.
Please see the example below to show you the User-defined UI element. The customized UI "UserControl" contains a Button with a selection event.

Now integrate the above example into a new XWT component directly. See the screenshot below.

