C# – Where’s the file-picker dialog in WPF

.net-4.0cwpf

http://i.minus.com/i3xuoWZkpfxHn.png

I don't see anything that would let me pick files from my computer… there has to be one, where is it? I'm probably missing a reference?


Edit: What I had in mind was a textbox with a "Browse" button beside it. It occurs to me now that I probably have to place the textbox and browse button myself and add a click event to the button to open the dialog…

Best Answer

There is no built-in control that has a textbox with a [Browse] button beside it. You gotta set that up yourself.

For the "open file" dialog itself, there is the OpenFileDialog in Microsoft.Win32 namespace.