protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent) { notifyingChildren = new NotifyingUIElementCollection(this, logicalParent); ChildrenCreated.Raise(this); return notifyingChildren; }
protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent) { //<function summary> // Override the CreateUIElementCollection method // Assign notifyingChildren to the Collection associated with the logicalParent // Raise the event handler ChildrenCreated //</function summary> notifyingChildren = new NotifyingUIElementCollection(this, logicalParent); ChildrenCreated.Raise(this); return(notifyingChildren); }