private static void BackgroundChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PasswordBoxEx uc = d as PasswordBoxEx;

            if (e.NewValue == null)
            {
                return;
            }
            uc.Background = e.NewValue as Brush;
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.uc = ((CommonLib.control.textBoxDefaltValue.PasswordBoxEx)(target));
                return;

            case 2:
                this.password = ((System.Windows.Controls.PasswordBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        private static void OnPasswordChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PasswordBoxEx uc = d as PasswordBoxEx;

            uc.UpdateStates();
        }
        private static void OnHintChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PasswordBoxEx password = d as PasswordBoxEx;

            password.UpdateStates();
        }