Пример #1
0
            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);
            }
Пример #2
0
 public NotifyPropertyChanged()
 {
     currentStep = NotifyingProperty.Create(() => CurrentStep, () => null);
 }