enode.SkipProperties.Add(name);
var value = Context.Values[node];
var serviceProvider = new XamlServiceProvider(enode, Context);
- var convertedValue = value.ConvertTo(parameter.ParameterType, () => parameter, serviceProvider);
+ var convertedValue = value?.ConvertTo(parameter.ParameterType, () => parameter, serviceProvider);
array[i] = convertedValue;
}
return;
if (IsSealed)
throw new InvalidOperationException("Can not change Property once the Trigger has been applied.");
+
_property = value;
//convert the value
if (_property != null && s_valueConverter != null)
{
- Func<MemberInfo> minforetriever = () => Property.DeclaringType.GetRuntimeProperty(Property.PropertyName);
- Value = s_valueConverter.Convert(Value, Property.ReturnType, minforetriever, null);
+ Func<MemberInfo> minforetriever = () => _property.DeclaringType.GetRuntimeProperty(_property.PropertyName);
+ Value = s_valueConverter.Convert(Value, _property.ReturnType, minforetriever, null);
}
}
}
//convert the value
if (_property != null && s_valueConverter != null)
{
- Func<MemberInfo> minforetriever = () => Property.DeclaringType.GetRuntimeProperty(Property.PropertyName);
- value = s_valueConverter.Convert(value, Property.ReturnType, minforetriever, null);
+ Func<MemberInfo> minforetriever = () => _property.DeclaringType.GetRuntimeProperty(_property.PropertyName);
+ value = s_valueConverter.Convert(value, _property.ReturnType, minforetriever, null);
}
_triggerValue = value;
}