public static void SetCollection(object instance, CustomCollection value) { AttachedProperties.Add(instance, value); }