ComponentFactory.Quicksilver.Layout.MetaPanelBase.RemoveChild C# (CSharp) Method

RemoveChild() public method

Perform remove animation for the child and then remove from the children.
public RemoveChild ( UIElement element ) : void
element UIElement Element to be removed.
return void
        public void RemoveChild(UIElement element)
        {
            // Check the element is in the collection
            if (_stateDict.ContainsKey(element))
            {
                // If the element is not already marked to be removed...
                MetaElementState elementState = _stateDict[element];
                if (elementState.Status != MetaElementStatus.Removing)
                {
                    // Mark element to be removed
                    elementState.Status = MetaElementStatus.Removing;
                    elementState.TargetChanged = true;

                    // Need to measure to force remove animation
                    InvalidateMeasure();
                }
            }
        }