protected override IList <XamlMember> LookupDependsOn() { if (_dependsOn == null) { var attrib = UnderlyingMember.GetCustomAttribute <DependsOnAttribute>(true); if (attrib != null) { var member = DeclaringType.GetMember(attrib.Name); _dependsOn = new XamlMember[] { member }; } else { _dependsOn = base.LookupDependsOn(); } } return(_dependsOn); }
public override string GetDisplayName() { return(UnderlyingMember.GetDisplayName()); }
public override void SetValue(object instance, object value) { _valueProperty.SetValue(UnderlyingMember.GetValue(instance), value, null); }