I have few images at path "C:\Images\", and m loading my images at Page_Load event of silverlight page. But its not working....please help!
Here`s my code:
ObservableCollection<string> imagesCollection = new ObservableCollection<string>();
string[] arr = Directory.GetFiles(@"C:\Images\");
for (int a = 0; a < arr.Length; a++ )
{
imagesCollection.Add(arr[a]);
}
CoverFlow.DataContext = imagesCollection;
Everything is fine with the code but still not getting any positive signs....please help me!
Here`s my code:
ObservableCollection<string> imagesCollection = new ObservableCollection<string>();
string[] arr = Directory.GetFiles(@"C:\Images\");
for (int a = 0; a < arr.Length; a++ )
{
imagesCollection.Add(arr[a]);
}
CoverFlow.DataContext = imagesCollection;
Everything is fine with the code but still not getting any positive signs....please help me!