internal static ModelItem FindParent(EditingContext context, Type childType, ModelItem startingItem, ModelItem childItem) { if (context == null) { throw new ArgumentNullException("context"); } if (childType == null) { throw new ArgumentNullException("childType"); } if (startingItem == null) { throw new ArgumentNullException("startingItem"); } return(ModelParent.GetImplementation(context).FindParent(childType, startingItem, childItem)); }
public static void Parent(EditingContext context, ModelItem parentItem, ModelItem childItem) { if (context == null) { throw new ArgumentNullException("context"); } if (parentItem == null) { throw new ArgumentNullException("parentItem"); } if (childItem == null) { throw new ArgumentNullException("childItem"); } ModelParent.GetImplementation(context).Parent(parentItem, childItem); }
public static bool CanParent(EditingContext context, ModelItem parent, Type childType) { if (context == null) { throw new ArgumentNullException("context"); } if (parent == null) { throw new ArgumentNullException("parent"); } if (childType == null) { throw new ArgumentNullException("childType"); } ModelItem redirectedParent; return(ModelParent.GetImplementation(context).CanParent(parent, childType, (ModelItem)null, out redirectedParent)); }