static void OnValidationChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { ValidationControl me = sender as ValidationControl; if (me != null) { //ValidationObject newobj = e.NewValue as ValidationObject; //ValidationObject oldobj = e.OldValue as ValidationObject; } }
static void OnInnerContentChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { ValidationControl me = sender as ValidationControl; if (me != null) { if (me.cc.Content == null) { me.cc.Content = me.InnerContent; } } }