Click here to Skip to main content
15,887,746 members

Comments by Elder Scrolls (Top 4 by date)

Elder Scrolls 25-Sep-15 11:17am View    
Can you tell, how to do this?
Elder Scrolls 25-Sep-15 10:53am View    
Can you correct the above code..
Elder Scrolls 25-Sep-15 10:43am View    
Actually, I want to create a TileView. I am getting problems in loading a list of images in the TileView like above. The image folder should be selected at runtime. The system is displaying that there are some images to show, but not actually rendering them. Not sure, what to do.. Can you help?
Elder Scrolls 25-Sep-15 10:32am View    
I also tried this

<ListView Name="QueleaGridView" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListView.ItemsPanel>
<itemspaneltemplate>
<wrappanel orientation="Horizontal">

</ListView.ItemsPanel>
<ListView.ItemTemplate>
<datatemplate>
<Image Width="100" Height="100" Source="{Binding ImagePath}">
</Image>

</ListView.ItemTemplate>
</ListView>

public class ImageClass
{
public string ImagePath;
}

List<bitmapimage> lstImages = new List<bitmapimage>();

BitmapImage imgTemp;
List<string> lstFileNames = new List<string>(System.IO.Directory.EnumerateFiles(@"E:\Quelea\images", "*.png"));
foreach (string fileName in lstFileNames)
{
imgTemp = new BitmapImage();
imgTemp.BeginInit();
imgTemp.UriSource = new Uri(fileName);
imgTemp.EndInit();
lstImages.Add(imgTemp);
}
ListView QueleaGridView = Quelea.UILibrary.UILib_MainWindow.FindChild<ListView>(Quelea.UILibrary.UILib_MainWindow.GetWindow(this), "QueleaGridView");
QueleaGridView.ItemsSource = lstImages;


But Same Result...
M confused. Stuck on it from so long. Did so many changes. Some right, some wrong.. Now how can I correct it?