I would like to display the Username in my WPF application, where it should get the username from the current user logged in?
so my question how can we get the username
Call WindowsIdentity.GetCurrent() to get the Windows user identity.
WindowsIdentity.GetCurrent()
You can get the name from this.