From 008ef53680fde39efee6394003b48e3d6eb5a67b Mon Sep 17 00:00:00 2001 From: Dong Bin <14807942+rabbitism@users.noreply.github.com> Date: Mon, 2 Oct 2023 06:34:01 +0800 Subject: [PATCH] fix: TemplateBinding clone should carry original Mode. (#13087) Co-authored-by: rabbitism --- src/Avalonia.Base/Data/TemplateBinding.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Avalonia.Base/Data/TemplateBinding.cs b/src/Avalonia.Base/Data/TemplateBinding.cs index 0fd40cd09dc..dd288b892ff 100644 --- a/src/Avalonia.Base/Data/TemplateBinding.cs +++ b/src/Avalonia.Base/Data/TemplateBinding.cs @@ -84,6 +84,7 @@ public virtual void Dispose() Converter = Converter, ConverterParameter = ConverterParameter, Property = Property, + Mode = Mode, }; return clone.Initiate(target, targetProperty, anchor, enableDataValidation);