How to Reference an Element in Code

Pages can be referenced in the code behind file in the same way they are found hierarchically in the Elements Explorer.

 

 

For example, in the image above, the BtnGSubmit element is referenced this way:

 

Pages.Google.BtnGSubmit

 

It returns the strongly typed Telerik Framework HtmlInputSubmit type.

 

Here's an example with a Silverlight element:

 

 

The DataFormTreeviewitem element is referenced this way:

 

Pages.SilverlightToolkitSamples.SilverlightApp.DataFormTreeviewitem