/// <summary> /// Attempts to create the target <see cref="PropertyExpression"/> for this binding. /// </summary> /// <returns> /// A <see cref="PropertyExpression"/>, or <see langword="null"/> if no expression could be created. /// </returns> protected override PropertyExpression AttemptCreateTargetPropertyExpression() { var targetObject = TargetObject; if (targetObject == null || _targetExpression == null) { return(null); } return(LambdaPropertyExpression.FromLambdaExpression(targetObject, _targetExpression, BindOnValidation)); }
/// <summary> /// Attempts to create the <see cref="PropertyExpression"/> for this <c>TypedBinding</c>'s source. /// </summary> /// <returns> /// The <see cref="PropertyExpression"/>, or <see langword="null"/> if the property expression cannot be created. /// </returns> protected override PropertyExpression AttemptCreateSourcePropertyExpression() { var sourceObject = SourceObject; if (sourceObject == null || _sourceExpression == null) { return(null); } return(LambdaPropertyExpression.FromLambdaExpression(sourceObject, _sourceExpression, BindOnValidation)); }