Initial Commit
This commit is contained in:
37
Common/NotifyingPanels/NotifyingStackPanel.cs
Normal file
37
Common/NotifyingPanels/NotifyingStackPanel.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user