private static void OnHidePromptOnLeaveChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { MaskedText maskedText = GetInstance(d); if (maskedText != null) { maskedText.SetText(); } }
private static void OnPromptCharChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { MaskedText maskedText = GetInstance(d); if (maskedText != null) { maskedText._provider.PromptChar = (char)e.NewValue; maskedText.SetText(); } }