Rex or ESRI team, Thanks a bunch for the link. Very cool. I did some customization and basically got the app working for me but I was hoping to ask one question and I know it is not ESRI API silverlight related but I thought I could ask in hopes you are feeling kind. So the template was pointing to this xml file http://www.apple.com/trailers/home/xml/current.xmlAnd this is how all the movie icons and information was getting binded to the application. So I wrote my own xml and bound my own information about my websites and icons/pictures of my websites.Everything works great when I launch the app from VS 2010 but when I launch the app outside of VS just using Mozilla or I.E the app can't find my xml file. I just place it in the CoverFlowWeb directory. So in xaml.cs file there is this code where it is pointing to the xml file First Red line and it is erroring out at the second Red line. Do I need to place my xml file in a special place (virtual directory) Currently everything is on one maching so I thought it would be able to access it.
void MainPage_Loaded(object sender, RoutedEventArgs e)
{
WebClient webClient = new WebClient();
webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient_DownloadStringCompleted);
Uri xmlUri = new Uri(HtmlPage.Document.DocumentUri, "GetTrailersXml.ashx");
webClient.DownloadStringAsync(xmlUri);
}
void webClient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
if (e.Error != null)
{
MessageBox.Show("There was an error retrieving xml");
return;
}
XDocument xDoc = XDocument.Parse(e.Result);
foreach (XElement xMovieInfo in xDoc.Descendants("movieinfo"))
{
try
{
MovieTrailer trailer = new MovieTrailer(xMovieInfo);
trailers.Add(trailer);
}
catch { }
}
AssignItems();
loadingControl.Visibility = Visibility.Collapsed;
slider.Focus();
}
ThanksChris