private static void LeavingDateCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { AssuranceInfoComponent comp = d as AssuranceInfoComponent; if (comp != null) { string value = e.NewValue as string; ControlExt.SetDataSourcePath(comp.LeavingDate, value); } }