public Worker() { currentStep = NotifyingProperty.Create(() => CurrentStep, () => PropertyChanged); totalSteps = NotifyingProperty.Create(() => TotalSteps, () => PropertyChanged); // A PropertyChanged notification will be created for Progress every time // either the CurrentStep *or* TotalSteps changes. NotifyingProperty.CreateDependent( () => Progress, () => PropertyChanged, () => CurrentStep, () => TotalSteps); }
public NotifyPropertyChanged() { currentStep = NotifyingProperty.Create(() => CurrentStep, () => null); }