In my XAML I have:
<PasswordBox PlaceholderText="Password" Name="login_password" Width="350" />
Am trying to check if the PasswordBox
is empty via:
if(login_password.Text == "") //this returns an error
{
//show message box
}
How can I check if the PasswordBox
is empty?