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;
        }
Exemple #3
0
		protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
		{
			NotifyingUIElementCollection collection = new NotifyingUIElementCollection(this, logicalParent);
			collection.CollectionChanged += collection_CollectionChanged;
			return collection;
		}