5 writes to DataContext
System.Windows.Forms.Tests (5)
System\Windows\Forms\ControlTests.cs (5)
747control.DataContext = dataContext; 755control.DataContext = null; 764childControl.DataContext = dataContext; 766control.DataContext = dataContext; 774childControl.DataContext = null;
10 references to DataContext
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (5)
736: ParentInternal?.DataContext; 739if (Equals(value, DataContext)) 746if (Properties.ContainsKey(s_dataContextProperty) && Equals(ParentInternal?.DataContext, value)) 3642/// Occurs when the value of the <see cref="DataContext"/> property changes. 6899if (Equals(Properties.GetValueOrDefault<object>(s_dataContextProperty), Parent?.DataContext))
System.Windows.Forms.Tests (5)
System\Windows\Forms\ControlTests.cs (5)
748Assert.Equal(dataContext, control.DataContext); 749Assert.Equal(dataContext, childControl.DataContext); 759Assert.Null(childControl.DataContext); 769Assert.Equal(dataContext, control.DataContext); 770Assert.Equal(dataContext, childControl.DataContext);