2009-10-28 113 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。