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); } }
private static void ChangedMagnifierCb(DependencyObject d, DependencyPropertyChangedEventArgs e) { ICommand value = e.NewValue as ICommand; AssuranceInfoComponent component = d as AssuranceInfoComponent; if (component != null) { component.UpdateMagnifierValue(value); } }
private static void DataSourceCallCb(DependencyObject d, DependencyPropertyChangedEventArgs e) { AssuranceInfoComponent info = d as AssuranceInfoComponent; info?.UpdateDo(e); }