Ejemplo n.º 1
0
        private static void ShowPasswordChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AduPasswordBox passwordBox = d as AduPasswordBox;

            if (passwordBox != null)
            {
                passwordBox.SelectionStart = passwordBox.Text.Length + 1;
            }
        }
Ejemplo n.º 2
0
        private static void CornerRadiusChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AduPasswordBox textbox = d as AduPasswordBox;

            if (textbox != null && e.NewValue != null)
            {
                textbox.OnCornerRadiusChanged((CornerRadius)e.NewValue);
            }
        }
Ejemplo n.º 3
0
        private static void IsCanSeePasswordChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AduPasswordBox passowrdBox = d as AduPasswordBox;

            if (passowrdBox != null && passowrdBox.PART_SeePassword != null)
            {
                passowrdBox.PART_SeePassword.Visibility = (bool)e.NewValue ? Visibility.Visible : Visibility.Collapsed;
            }
        }