Need to find out the type of an element inside a listBox, whether the type is button or radio button or simple string.
Something lie the snippet below:
foreach (ListBoxItem _item in listPhotoAlbum.ItemsSource)
{
if _item is of type of button
//DO this
else if _item is typeof RadioButton
//Do that
}