Example #1
0
 private void DoRemoveChild(VdsTransform child)
 {
     if (_childrenList != null && _childrenList.Contains(child))
     {
         RemoveChildInternal(this.NativeHandle, child.NativeHandle);
         lock (_locker)
         {
             _childrenList.Remove(child);
         }
         child.SetParent(null);
     }
 }
Example #2
0
 private void DoAddChild(VdsTransform child)
 {
     AddChildInternal(this.NativeHandle, child.NativeHandle);
     if (_childrenList == null)
     {
         _childrenList = new List <VdsTransform>();
     }
     if (_childrenList.Contains(child))
     {
         return;
     }
     lock (_locker)
     {
         _childrenList.Add(child);
     }
     child.SetParent(this);
 }
Example #3
0
 protected virtual bool ContainsChildInternal(VdsTransform child, bool findChildren)
 {
     return(ContainsChildInternal(NativeHandle, child.NativeHandle, findChildren));
 }