Esempio n. 1
0
 public static void SetParent(this IMotionElementInput self, DependencyObject parent)
 {
     if (self is ContentElement)
     {
         ContentOperations.SetParent(self as ContentElement, parent);
     }
     else
     {
         throw new ArgumentException("Given object is not a ContentElement");
     }
 }
Esempio n. 2
0
        public static void SetParent(this IMotionElementInput reference, DependencyObject parent)
        {
            var element = reference as ContentElement;

            if (element != null)
            {
                ContentOperations.SetParent(element, parent);
            }
            else
            {
                throw new ArgumentException("Given reference is not a ContentElement");
            }
        }