What is the best way to prompt a user for username/password using .NET 4? I could build my own prompt using the WPF PasswordBox, but it seems like this should be part of the framework.
Ultimately I'd like it to work with Windows XP, Vista and 7, but Windows 7 is enough to get me started.
I have searched the web but the solutions I've found seem dated.
If there is a better way to authenticate users with WCF (using both Windows and UserName authentication) I'd be happy to know about it.