2009-10-28 13 views

Odpowiedz

14

Sposób BindingOperations.ClearBinding() wywołuje ClearValue() wewnętrznie.

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); 
    } 
} 

przez reflektor.

Powiązane problemy