Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        private static void ShowPasswordChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ZPasswordBox passwordBox = d as ZPasswordBox;

            if (passwordBox != null)
            {
                passwordBox.SelectionStart = passwordBox.Text.Length + 1;
            }
        }