<PasswordBox x:Name="txtPassword" ToolTip="Password" PasswordChar="*" />
Private Sub txtPassword_PasswordChanged(ByVal sender As System.Object _ , ByVal e As System.Windows.RoutedEventArgs _ ) Handles txtPassword.PasswordChanged 'Validate input End Sub
Public Function IsAuthenticated() as Boolean Return txtPassword.Password <> "" End Function
Labels: .NET Framework, Password TextBox, PasswordBox, WPF, XAML