Ok one trick could be like this
take a global int variable on the top of the page
int refreshCount=0;
after the list gets filled, assign this refreshCount to some int value say 1
List<CLASS> list = new List<CLASS>();
list = (from query in doc.Descendants("row")
select new CLASS
{
Id = Convert.ToInt64(query.Element("Id").Value),
Name = query.Element("Name").Value,
title = query.Element("title").Value
}).ToList();
listPicker2.DataContext = list;
refreshCount=1;
Now enclose this complete block with a simple condition and your code would become like this
if(refreshCount==0)
{
List<CLASS> list = new List<CLASS>();
list = (from query in doc.Descendants("row")
select new CLASS
{
Id = Convert.ToInt64(query.Element("Id").Value),
Name = query.Element("Name").Value,
title = query.Element("title").Value
}).ToList();
listPicker2.DataContext = list;
refreshCount=1;
}
By this you should get rid of your problems.