private static void _timeStepValuePropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) { OptionalScenarioTraining instance = (OptionalScenarioTraining)obj; instance._timeStepValue = (double)args.NewValue; }