Files
DynamicDataDisplay/Backup/Common/NotifyingPanels/NotifyingStackPanel.cs
2024-02-23 09:29:44 -05:00

38 lines
891 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 NotifyingStackPanel : StackPanel, 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
public override string ToString()
{
return typeof(NotifyingStackPanel).Name + " Name: " + Name;
}
}
}