private static void OnCurrentTimePropertyChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { CommonCtrlKirishi control = source as CommonCtrlKirishi; // DateTime time = (DateTime)e.NewValue; // Put some update logic here... }
private static void DepParamsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { CommonCtrlKirishi ctrl = (CommonCtrlKirishi)d; ctrl.SetParam(e.Property.Name, e.NewValue, e.OldValue); }