0
Answer

Get the child element of stackpanel in Windows Phone 8

Sweta Sinha

Sweta Sinha

10y
634
1
Hi,
 
I have programmatically added a list of images  in a stack panel,that would display after certain time interval.I have created a click event in that stack panel.I want to get the child element displayed when clicked.
 
Adding images to the stackpanel:
private void LoadImages()
{
_images.ForEach(item => this.sPanel.Children.Add(item));     //sPanel is the stackpanel,_images contains the list of images
}