I program in C# WPF. In MSDN, it states that OpenFileDialog
belongs to namespace System.Windows.Controls. But simply having using System.Windows.Controls does not allow me to use OpenFileDialog
. I have to add using Microsoft.Win32 as well to use OpenFileDialog.
Why?
I suspect this is just a Silverlight documentation error/limitation.
This .Net MSDN link correctly places the OpenFileDialog in the Microsoft.Win32 namespace.