PageRenderTime 19ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

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