private static AvaloniaPropertyChangedEventArgs <T> Clone <T>(AvaloniaPropertyChangedEventArgs <T> change)
            {
                var result = new AvaloniaPropertyChangedEventArgs <T>(
                    change.Sender,
                    change.Property,
                    change.OldValue,
                    change.NewValue,
                    change.Priority);

                if (!change.IsEffectiveValueChange)
                {
                    result.MarkNonEffectiveValue();
                }

                return(result);
            }
Beispiel #2
0
            private static AvaloniaPropertyChangedEventArgs Clone(AvaloniaPropertyChangedEventArgs change)
            {
                var e      = (AvaloniaPropertyChangedEventArgs <string>)change;
                var result = new AvaloniaPropertyChangedEventArgs <string>(
                    change.Sender,
                    e.Property,
                    e.OldValue,
                    e.NewValue,
                    change.Priority);

                if (!change.IsEffectiveValueChange)
                {
                    result.MarkNonEffectiveValue();
                }

                return(result);
            }