private static bool ValidateClippingPathTarget(bool isRoot, SceneElement target, SceneElement path, ITypeId constraintType) { return(!target.IsLocked && !isRoot && (path != target && PlatformTypes.UIElement.IsAssignableFrom((ITypeId)target.Type)) && !path.IsAncestorOf((SceneNode)target)); }