private static void IsCanSeePasswordChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { ZPasswordBox passowrdBox = d as ZPasswordBox; if (passowrdBox != null && passowrdBox.PART_SeePassword != null) { passowrdBox.PART_SeePassword.Visibility = (bool)e.NewValue ? Visibility.Visible : Visibility.Collapsed; } }
private static void ShowPasswordChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ZPasswordBox passwordBox = d as ZPasswordBox; if (passwordBox != null) { passwordBox.SelectionStart = passwordBox.Text.Length + 1; } }