Not many questions answer this part of the question.
"Now i must know if the list contains an object of type stackpanel."
Which can be achieved through the following:
if (tmpList.Any(x=>x.IsTypeOf(StackPanel)))
{
//returns true if there are any stack panels in the list
}