public virtual void SetValue(object instance, object value, IValueContext valueContext) { if (ValueSetter.IsStatic) { ValueSetter.Invoke(null, new[] { instance, value }); } else { member.Setter.Invoke(instance, new[] { value }); } }
private void SetValueIndependent(object instance, object value) { if (ValueSetter.IsStatic) { ValueSetter.Invoke(null, new[] { instance, value }); } else { xamlMember.Setter.Invoke(instance, new[] { value }); } }
public virtual void SetValue(object instance, object value) { ValueSetter?.Invoke(this, instance, value); }