diff --git a/src/Avalonia.Base/Data/InstancedBinding.cs b/src/Avalonia.Base/Data/InstancedBinding.cs index 158f426cb64..f174be7f406 100644 --- a/src/Avalonia.Base/Data/InstancedBinding.cs +++ b/src/Avalonia.Base/Data/InstancedBinding.cs @@ -155,7 +155,7 @@ public static InstancedBinding TwoWay( _ = observable ?? throw new ArgumentNullException(nameof(observable)); _ = observer ?? throw new ArgumentNullException(nameof(observer)); - var subject = new CombinedSubject(observer, observable); + var subject = observable == observer ? observable : new CombinedSubject(observer, observable); return new InstancedBinding(subject, BindingMode.TwoWay, priority); }