1. There is no difference between classes inside a b4xlib library and your code.
2. You can unzip b4xlibs to see the code.
3. Best way to understand how templates are built is by seeing the code of the various templates in XUI Views.
4. To make sure that it is clear, you do NOT need to add template classes to XUI Views library itself.