Exemplo n.º 1
0
 internal static void ProvideContextForObject(DependencyObject context, TreeGridColumn newValue)
 {
     if (context != null)
     {
         MSInternal.ProvideSelfAsInheritanceContext(context, newValue, null);
     }
 }
Exemplo n.º 2
0
 internal static void RemoveContextFromObject(DependencyObject context, TreeGridColumn oldValue)
 {
     if (context != null && MSInternal.GetInheritanceContext(oldValue) == context)
     {
         MSInternal.ProvideSelfAsInheritanceContext(context, oldValue, null);
     }
 }