/Main/src/DynamicDataDisplay/Common/NotifyingPanels/NotifyingGrid.cs
C# | 32 lines | 26 code | 6 blank | 0 comment | 0 complexity | c7e89aba72f45694f905dc4702fd2805 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
- 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 NotifyingGrid : Grid, 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
- }
- }