You need to compile Class1 to a dll. As you can see you have ItemTemplateName property where - you can embed the template for your control. You can also use external template by setting LayoutTemplatePath property - used to get/set the path to a custom layout template for a control.
Let me know if there is anything else that we can do for you.
All the best,
the Telerik team