I'm looking for examples or help to create a WPF listview of files.
<ListView Margin="10,10,0,13" Name="ListView1" HorizontalAlignment="Left"
VerticalAlignment="Top" Width="194" Height="200">
I Load my files with this method :
private void AddFiles_Click(object sender, RoutedEventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Multiselect = true;
if (ofd.ShowDialog() == true)
{
string[] filePath = ofd.FileNames;
string[] safeFilePath = ofd.SafeFileNames;
}
}
What should I do now ?
ListView1.Items.Add(...) don't seems to work. In fact I can't find ListView1 from my cs code.
I found info here