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