コード例 #1
0
        private void NotifyMinutesPropertyChanged(TimeInstant oldValue, TimeInstant newValue)
        {
            // Notify when changed, but also when minutes is zero, as that is the starting value
            if (TimeInstant.MinutesAreDifferent(oldValue, newValue) || newValue.Minutes == 0)
            {
                NotifyPropertyChanged("Minutes");

                this.SetValue(TimeProperty, _value.ToDateTime());
            }
        }