public static readonly DependencyProperty InnerTextProperty = DependencyProperty.Register("InnerText", typeof(string), typeof(string), new PropertyMetadata(false, OnTextInput)); public bool InnerText { get { return (bool)GetValue(InnerTextProperty); } set { SetValue(InnerTextProperty, value); } } private static void OnTextInput(DependencyObject obj, DependencyPropertyChangedEventArgs e) { CheckEmailExistence c = obj as CheckEmailExistence; //TextBox c = obj as TextBox; //TextBlock y = obj as TextBlock; if (c != null) { //c.Text = (string)e.NewValue; c.lblMsg.Content = (string)e.NewValue; //y.Text = (string)e.NewValue; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)