Browse Source

fix nested multibinding work again

pull/1980/head
Andrey Kunchev 8 years ago
parent
commit
0a5329f6a3
  1. 2
      src/Markup/Avalonia.Markup/Data/MultiBinding.cs

2
src/Markup/Avalonia.Markup/Data/MultiBinding.cs

@ -61,7 +61,7 @@ namespace Avalonia.Data
var targetType = targetProperty?.PropertyType ?? typeof(object); var targetType = targetProperty?.PropertyType ?? typeof(object);
var children = Bindings.Select(x => x.Initiate(target, null)); var children = Bindings.Select(x => x.Initiate(target, null));
var input = children.Select(x => x.Subject).CombineLatest().Select(x => ConvertValue(x, targetType)); var input = children.Select(x => x.Observable).CombineLatest().Select(x => ConvertValue(x, targetType));
var mode = Mode == BindingMode.Default ? var mode = Mode == BindingMode.Default ?
targetProperty?.GetMetadata(target.GetType()).DefaultBindingMode : Mode; targetProperty?.GetMetadata(target.GetType()).DefaultBindingMode : Mode;

Loading…
Cancel
Save