Пример #1
0
        private static void OnHidePromptOnLeaveChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MaskedText maskedText = GetInstance(d);

            if (maskedText != null)
            {
                maskedText.SetText();
            }
        }
Пример #2
0
        private static void OnPromptCharChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MaskedText maskedText = GetInstance(d);

            if (maskedText != null)
            {
                maskedText._provider.PromptChar = (char)e.NewValue;
                maskedText.SetText();
            }
        }