//private void BindValue(DependencyObject target, string targetPropertyName)
        //{
        //var source = _source as DependencyObject;
        //if (source == null) return;

        ////此处需要注意,如果是表达式,需要使用表达式
        //var sourceValue = source.GetActualValue(_sourceProperty);
        //if (this.Converter != null)
        //{
        //    var parameter = this.Parameter ?? target;//默认将目标对象作为参数传递
        //    var exp = sourceValue as Expression;
        //    if (exp == null)
        //        sourceValue = this.Converter.Convert(sourceValue, parameter);
        //    else
        //        sourceValue = new ValueConverterExpressionWrapper(exp, this.Converter, parameter);
        //}

        //target.SetValue(targetPropertyName, sourceValue);
        //}

        #endregion


        #region 设置值

        public override bool SetValue(DependencyObject d, DependencyProperty dp, object value)
        {
            d.ClearExpression(dp); //清理属性的值,移除表达式,设置值为默认值
            d.SetValue(dp, value);
            return(true);
        }