TextBlock tb = (TextBlock)FindName("text"); foreach (FileDialogFileInfo fi in d.SelectedFiles) { tb.Text += fi.Name + Environment.NewLine; }