ReadLocalValue() public method

public ReadLocalValue ( [ dp ) : object
dp [
return object
コード例 #1
0
 private static void RefreshBinding(DependencyObject target, DependencyProperty property)
 {
     BindingExpression binding = target.ReadLocalValue(property) as BindingExpression;
     if (binding != null && binding.ParentBinding != null)
     {
         BindingOperations.SetBinding(target, property, binding.ParentBinding);
     }
 }
コード例 #2
0
 // Methods
 public static void EnsureBindingUpToDate(DependencyObject target, DependencyProperty dp)
 {
     BindingExpression expression = target.ReadLocalValue(dp) as BindingExpression;
     if (expression != null)
     {
         target.ClearValue(dp);
         target.SetValue(dp, expression);
     }
 }
コード例 #3
0
 private static object CacheLocalValueHelper(DependencyObject dependencyObject, DependencyProperty property)
 {
     return dependencyObject.ReadLocalValue(property);
 }