Accessing components within a template instance


i have a window. In this windows i added a CustomTemplate and a Button.
Is there any way to access to a component property inside the CustomTemplate using scripting on button? Or the only way is to use a CustomProperty in Template and bind it to component property?

It is definitely possible.
Have a look here:


Thanks!! tomorrow i’m going to test it!