diff --git a/src/Markup/Avalonia.Markup.Xaml/MarkupExtensions/ReflectionBindingExtension.cs b/src/Markup/Avalonia.Markup.Xaml/MarkupExtensions/ReflectionBindingExtension.cs index d71502c33c..1a69830155 100644 --- a/src/Markup/Avalonia.Markup.Xaml/MarkupExtensions/ReflectionBindingExtension.cs +++ b/src/Markup/Avalonia.Markup.Xaml/MarkupExtensions/ReflectionBindingExtension.cs @@ -38,7 +38,8 @@ namespace Avalonia.Markup.Xaml.MarkupExtensions RelativeSource = RelativeSource, DefaultAnchor = new WeakReference(serviceProvider.GetDefaultAnchor()), TargetNullValue = TargetNullValue, - NameScope = new WeakReference(serviceProvider.GetService()) + NameScope = new WeakReference(serviceProvider.GetService()), + UpdateSourceTrigger = UpdateSourceTrigger, }; } @@ -67,5 +68,11 @@ namespace Avalonia.Markup.Xaml.MarkupExtensions public RelativeSource? RelativeSource { get; set; } public object? TargetNullValue { get; set; } = AvaloniaProperty.UnsetValue; + + /// + /// Gets or sets a value that determines the timing of binding source updates for + /// and bindings. + /// + public UpdateSourceTrigger UpdateSourceTrigger { get; set; } } }