I’m wondering how can I access an IEnumerable of all the elements in a page derived from PhoneApplicationPage?
If it was ASP.Net WebForms, it would be something like below:
foreach (Control control in this.Controls)
{
//Do something
}
But cannot find the equivalent in Windows Phone 7.5!
You can probably achieve this using the VisualTreeHelper class
Do something like: