Files
2024-02-23 09:29:44 -05:00

33 lines
775 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;
namespace Microsoft.Research.DynamicDataDisplay.Common
{
internal sealed class NotifyingCanvas : Canvas, INotifyingPanel
{
#region INotifyingPanel Members
private NotifyingUIElementCollection notifyingChildren;
public NotifyingUIElementCollection NotifyingChildren
{
get { return notifyingChildren; }
}
protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
{
notifyingChildren = new NotifyingUIElementCollection(this, logicalParent);
ChildrenCreated.Raise(this);
return notifyingChildren;
}
public event EventHandler ChildrenCreated;
#endregion
}
}