2009-10-28 117 views

回答

14

的BindingOperations.ClearBinding()方法调用存在ClearValue(内部)。

public static void ClearBinding(DependencyObject target, DependencyProperty dp) 
{ 
    if (target == null) 
    { 
     throw new ArgumentNullException("target"); 
    } 
    if (dp == null) 
    { 
     throw new ArgumentNullException("dp"); 
    } 
    if (IsDataBound(target, dp)) 
    { 
     target.ClearValue(dp); 
    } 
} 

via Reflector。