/Main/src/DynamicDataDisplay/Common/NotifyingPanels/NotifyingGrid.cs

# · C# · 32 lines · 26 code · 6 blank · 0 comment · 0 complexity · c7e89aba72f45694f905dc4702fd2805 MD5 · raw file

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows.Controls;
  6. using System.Windows;
  7. namespace Microsoft.Research.DynamicDataDisplay.Common
  8. {
  9. internal sealed class NotifyingGrid : Grid, INotifyingPanel
  10. {
  11. #region INotifyingPanel Members
  12. private NotifyingUIElementCollection notifyingChildren;
  13. public NotifyingUIElementCollection NotifyingChildren
  14. {
  15. get { return notifyingChildren; }
  16. }
  17. protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
  18. {
  19. notifyingChildren = new NotifyingUIElementCollection(this, logicalParent);
  20. ChildrenCreated.Raise(this);
  21. return notifyingChildren;
  22. }
  23. public event EventHandler ChildrenCreated;
  24. #endregion
  25. }
  26. }