using Windows.UI.Xaml; namespace LiveCharts.Uwp.Components.MultiBinding { /// /// A multiple binding item. /// public class MultiBindingItem : DependencyObject { /// /// Gets or sets the binding value. /// /// The binding value. public object Value { get { return GetValue(ValueProperty); } set { SetValue(ValueProperty, value); } } /// /// Identifier for the dependency property. /// public static readonly DependencyProperty ValueProperty = DependencyProperty.Register(nameof(Value), typeof(object), typeof(MultiBindingItem), new PropertyMetadata(null, OnValueChanged)); private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { var multiBindingItem = (MultiBindingItem)d; multiBindingItem.Update(); } internal MultiBindingItemCollection Parent { get; set; } private void Update() { var parent = Parent; parent?.Update(); } } }