private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e) { HasTextProperty.SetValue((PasswordBox)sender); }
/// <summary> /// Fired when the password box password valuye changes /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e) { //Set the attached HasText value HasTextProperty.SetValue((PasswordBox)sender); }