It's my understanding that the RadDataBoundListBox for Windows Phone 7 does not support direct content.
My goal is to load 12 images from a folder named Images, and I am trying to bind an image (defined in the application folder named Images) to the RadDataBoundListBox.
During testing, 12 lines of System.Windows.Media.Imaging is displayed on the Windows Phone 7 - rather than 12 instances of the hard-coded image.
Any insight is appreciated, and the below code is being utilized in this test case.
BitmapImage
bi3 = new BitmapImage();
bi3.UriSource =
new Uri("Images/GreenPea.png", UriKind.Relative);
ObservableCollection
<BitmapImage> months = new ObservableCollection<BitmapImage>();
foreach (string monthName in DateTimeFormatInfo.CurrentInfo.MonthNames)
{
months.Add(bi3);
}
this.radDataBoundListBox.ItemsSource = months;